-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start Lacros port of non-browser-window client-side decoration
Extract minimum viable client-side decoration functionality from Ash to a common base class and compile that into Lacros. This allows Lacros to start doing client-side decoration for non-browser windows like Ash. This commit does not attempt to port all of the Ash functionality (e.g. hiding the titlebar when in tablet mode) to Lacros. Remaining unported functionality can be ported as desired, hopefully more easily now that the inheritance scaffolding is in place. Bug: 1338969 Change-Id: I8ab5f2c0eaea22205fd1fcef0fb3634c62e1823a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3975540 Reviewed-by: Mitsuru Oshima <oshima@chromium.org> Reviewed-by: Peter Kasting <pkasting@chromium.org> Commit-Queue: Alex Yang <aycyang@chromium.org> Cr-Commit-Position: refs/heads/main@{#1070715}
- Loading branch information
Alex Yang
authored and
Chromium LUCI CQ
committed
Nov 12, 2022
1 parent
29d6909
commit 7e4abc5
Showing
10 changed files
with
325 additions
and
227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Copyright 2022 The Chromium Authors | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#include "chrome/browser/ui/views/chrome_views_delegate.h" | ||
|
||
#include <memory> | ||
|
||
#include "chromeos/ui/frame/non_client_frame_view_base.h" | ||
|
||
std::unique_ptr<views::NonClientFrameView> | ||
ChromeViewsDelegate::CreateDefaultNonClientFrameView(views::Widget* widget) { | ||
return std::make_unique<chromeos::NonClientFrameViewBase>(widget); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.