forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move FullscreenControlPopup to components for reuse
FullscreenControlPopup will be reused in exo crrev.com/c/2821565. Bug: 1198400 Change-Id: Id9b2bc0644f9dc2e8faa6bf89d3c8073cd7a5740 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2823031 Reviewed-by: Xianzhu Wang <wangxianzhu@chromium.org> Reviewed-by: Scott Violet <sky@chromium.org> Reviewed-by: Austin Sullivan <asully@chromium.org> Reviewed-by: Robert Liao <robliao@chromium.org> Reviewed-by: Ted Choc <tedchoc@chromium.org> Reviewed-by: Yuwei Huang <yuweih@chromium.org> Reviewed-by: Peter Boström <pbos@chromium.org> Commit-Queue: Joel Hockey <joelhockey@chromium.org> Cr-Commit-Position: refs/heads/master@{#872217}
- Loading branch information
Joel Hockey
authored and
Chromium LUCI CQ
committed
Apr 14, 2021
1 parent
cf5d45c
commit 2de97cc
Showing
26 changed files
with
98 additions
and
26 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
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
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,43 @@ | ||
# Copyright 2021 The Chromium Authors. All rights reserved. | ||
# Use of this source code is governed by a BSD-style license that can be | ||
# found in the LICENSE file. | ||
|
||
static_library("fullscreen_control") { | ||
sources = [ | ||
"fullscreen_control_popup.cc", | ||
"fullscreen_control_popup.h", | ||
"fullscreen_control_view.cc", | ||
"fullscreen_control_view.h", | ||
] | ||
deps = [ | ||
"//base", | ||
"//cc/paint", | ||
"//components/strings", | ||
"//components/vector_icons", | ||
"//skia", | ||
"//ui/base", | ||
"//ui/compositor", | ||
"//ui/gfx:native_widget_types", | ||
"//ui/gfx/animation", | ||
"//ui/gfx/geometry", | ||
"//ui/views", | ||
] | ||
} | ||
|
||
source_set("unit_tests") { | ||
testonly = true | ||
sources = [ | ||
"fullscreen_control_popup_unittest.cc", | ||
"fullscreen_control_view_unittest.cc", | ||
] | ||
|
||
deps = [ | ||
":fullscreen_control", | ||
"//base", | ||
"//base/test:test_support", | ||
"//testing/gtest", | ||
"//ui/gfx:test_support", | ||
"//ui/views", | ||
"//ui/views:test_support", | ||
] | ||
} |
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,8 @@ | ||
include_rules = [ | ||
"+cc/paint", | ||
"+components/vector_icons", | ||
"+components/strings", | ||
"+testing/gtest", | ||
"+third_party/skia", | ||
"+ui" | ||
] |
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,3 @@ | ||
monorail { | ||
component: "UI>Browser" | ||
} |
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,2 @@ | ||
file://chrome/browser/ui/views/fullscreen_control/OWNERS | ||
file://chrome/browser/ui/views/OWNERS |
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,6 @@ | ||
# Fullscreen Control # | ||
|
||
Fullscreen control provides UI components used during fullscreen: | ||
* Exit circle with 'X' shown when the mouse moves to the top of the screen. | ||
|
||
The components are used by chrome browser, and by Chrome OS exo. |
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
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,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<grit-part> | ||
<message name="IDS_EXIT_FULLSCREEN_MODE" desc="Clickable message displayed on entering full screen mode. Clicking on the link exits full screen mode."> | ||
Exit full screen | ||
</message> | ||
</grit-part> |
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,3 @@ | ||
monorail { | ||
component: "UI>Browser" | ||
} |
1 change: 1 addition & 0 deletions
1
components/fullscreen_control_strings_grdp/IDS_EXIT_FULLSCREEN_MODE.png.sha1
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 @@ | ||
77262c576584a767eb718ce4e342d8c8b59d3d78 |
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 @@ | ||
file://components/fullscreen_control/OWNERS |
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,5 @@ | ||
This directory of image SHA-1 hashes is used to improve translations of UI | ||
strings through context images for translators. | ||
|
||
See also: [Chrome Translation Screenshots - Instructions & FAQ | ||
](https://docs.google.com/document/d/1nwYWDny20icMSpLUuV_LgrlbWKrYpbXOERUIZNH636o/edit#heading=h.2t7lc4cxo2au) |