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 Android view based ColorPicker from ui/ to components/
BUG=651988 Review-Url: https://codereview.chromium.org/2398543003 Cr-Commit-Position: refs/heads/master@{#431088}
- Loading branch information
Showing
27 changed files
with
102 additions
and
79 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
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
10 changes: 10 additions & 0 deletions
10
components/web_contents_delegate_android/android/java/res/values/colors.xml
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,10 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- Copyright 2016 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. | ||
--> | ||
<resources> | ||
<color name="color_picker_border_color">#B0B0B0</color> | ||
<color name="color_picker_background_color">#FFFFFF</color> | ||
</resources> |
15 changes: 15 additions & 0 deletions
15
components/web_contents_delegate_android/android/java/res/values/dimens.xml
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,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- Copyright 2016 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. | ||
--> | ||
|
||
<resources> | ||
<!-- | ||
14.5 = Seekbar thumb width - border width, but it depends on the width | ||
of the seek bar icon. | ||
--> | ||
<dimen name="color_picker_gradient_margin">14.5dp</dimen> | ||
<dimen name="color_button_height">60dp</dimen> | ||
</resources> |
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,51 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<grit-part> | ||
|
||
<!-- Color picker --> | ||
<message name="IDS_COLOR_PICKER_BUTTON_MORE" desc="Text for ColorPicker button to go to advanced view. [CHAR-LIMIT=20]" formatter_data="android_java"> | ||
More | ||
</message> | ||
<message name="IDS_COLOR_PICKER_HUE" desc="Label for hue slider in ColorPicker." formatter_data="android_java"> | ||
Hue | ||
</message> | ||
<message name="IDS_COLOR_PICKER_SATURATION" desc="Label for saturation slider in ColorPicker." formatter_data="android_java"> | ||
Saturation | ||
</message> | ||
<message name="IDS_COLOR_PICKER_VALUE" desc="Label for value slider in ColorPicker." formatter_data="android_java"> | ||
Value | ||
</message> | ||
<message name="IDS_COLOR_PICKER_BUTTON_SET" desc="Label for button in ColorPicker dialog for user to accept the currently chosen color. [CHAR-LIMIT=20]" formatter_data="android_java"> | ||
Set | ||
</message> | ||
<message name="IDS_COLOR_PICKER_BUTTON_CANCEL" desc="Label for button in ColorPicker dialog for user to cancel picking a color. [CHAR-LIMIT=20]" formatter_data="android_java"> | ||
Cancel | ||
</message> | ||
<message name="IDS_COLOR_PICKER_DIALOG_TITLE" desc="Title of ColorPicker dialog. [CHAR-LIMIT=20]" formatter_data="android_java"> | ||
Select color | ||
</message> | ||
<message name="IDS_COLOR_PICKER_BUTTON_RED" desc="Accessibility label for button to select the red color." formatter_data="android_java"> | ||
Red | ||
</message> | ||
<message name="IDS_COLOR_PICKER_BUTTON_CYAN" desc="Accessibility label for button to select the cyan color." formatter_data="android_java"> | ||
Cyan | ||
</message> | ||
<message name="IDS_COLOR_PICKER_BUTTON_BLUE" desc="Accessibility label for button to select the blue color." formatter_data="android_java"> | ||
Blue | ||
</message> | ||
<message name="IDS_COLOR_PICKER_BUTTON_GREEN" desc="Accessibility label for button to select the green color." formatter_data="android_java"> | ||
Green | ||
</message> | ||
<message name="IDS_COLOR_PICKER_BUTTON_MAGENTA" desc="Accessibility label for button to select the magenta color." formatter_data="android_java"> | ||
Magenta | ||
</message> | ||
<message name="IDS_COLOR_PICKER_BUTTON_YELLOW" desc="Accessibility label for button to select the yellow color." formatter_data="android_java"> | ||
Yellow | ||
</message> | ||
<message name="IDS_COLOR_PICKER_BUTTON_BLACK" desc="Accessibility label for button to select the black color." formatter_data="android_java"> | ||
Black | ||
</message> | ||
<message name="IDS_COLOR_PICKER_BUTTON_WHITE" desc="Accessibility label for button to select the white color." formatter_data="android_java"> | ||
White | ||
</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
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