mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium revision 9ef2aa86 (#550428)
This commit is contained in:
@@ -39,10 +39,10 @@ index 605dc1b17e43..24c385a53289 100644
|
||||
virtual void MenuWillShow() {}
|
||||
|
||||
diff --git ui/gfx/render_text.cc ui/gfx/render_text.cc
|
||||
index 3d706df56ee6..f10d816a3f05 100644
|
||||
index 39702db77da5..fa1a84425200 100644
|
||||
--- ui/gfx/render_text.cc
|
||||
+++ ui/gfx/render_text.cc
|
||||
@@ -518,6 +518,14 @@ void RenderText::SetElideBehavior(ElideBehavior elide_behavior) {
|
||||
@@ -524,6 +524,14 @@ void RenderText::SetElideBehavior(ElideBehavior elide_behavior) {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ index 3d706df56ee6..f10d816a3f05 100644
|
||||
void RenderText::SetDisplayRect(const Rect& r) {
|
||||
if (r != display_rect_) {
|
||||
display_rect_ = r;
|
||||
@@ -1465,6 +1473,19 @@ void RenderText::OnTextAttributeChanged() {
|
||||
@@ -1485,6 +1493,19 @@ void RenderText::OnTextAttributeChanged() {
|
||||
if (!multiline_ && replace_newline_chars_with_symbols_)
|
||||
base::ReplaceChars(layout_text_, kNewline, kNewlineSymbol, &layout_text_);
|
||||
|
||||
@@ -78,10 +78,10 @@ index 3d706df56ee6..f10d816a3f05 100644
|
||||
}
|
||||
|
||||
diff --git ui/gfx/render_text.h ui/gfx/render_text.h
|
||||
index 47fa4c605ce1..f5587fac6b5d 100644
|
||||
index 4cc2bdc85fe8..2b05443698da 100644
|
||||
--- ui/gfx/render_text.h
|
||||
+++ ui/gfx/render_text.h
|
||||
@@ -295,6 +295,10 @@ class GFX_EXPORT RenderText {
|
||||
@@ -299,6 +299,10 @@ class GFX_EXPORT RenderText {
|
||||
void SetElideBehavior(ElideBehavior elide_behavior);
|
||||
ElideBehavior elide_behavior() const { return elide_behavior_; }
|
||||
|
||||
@@ -92,7 +92,7 @@ index 47fa4c605ce1..f5587fac6b5d 100644
|
||||
const Rect& display_rect() const { return display_rect_; }
|
||||
void SetDisplayRect(const Rect& r);
|
||||
|
||||
@@ -858,6 +862,8 @@ class GFX_EXPORT RenderText {
|
||||
@@ -882,6 +886,8 @@ class GFX_EXPORT RenderText {
|
||||
// Extra spacing placed between glyphs; used for obscured text styling.
|
||||
int glyph_spacing_ = 0;
|
||||
|
||||
@@ -102,10 +102,10 @@ index 47fa4c605ce1..f5587fac6b5d 100644
|
||||
};
|
||||
|
||||
diff --git ui/views/animation/ink_drop_host_view.h ui/views/animation/ink_drop_host_view.h
|
||||
index 34ea050d06a8..7bdd050802a0 100644
|
||||
index 81d018254a5d..f5911778e3b6 100644
|
||||
--- ui/views/animation/ink_drop_host_view.h
|
||||
+++ ui/views/animation/ink_drop_host_view.h
|
||||
@@ -67,6 +67,8 @@ class VIEWS_EXPORT InkDropHostView : public View, public InkDropHost {
|
||||
@@ -73,6 +73,8 @@ class VIEWS_EXPORT InkDropHostView : public View, public InkDropHost {
|
||||
// them.
|
||||
void AnimateInkDrop(InkDropState state, const ui::LocatedEvent* event);
|
||||
|
||||
@@ -115,10 +115,10 @@ index 34ea050d06a8..7bdd050802a0 100644
|
||||
static constexpr int kInkDropSmallCornerRadius = 2;
|
||||
static constexpr int kInkDropLargeCornerRadius = 4;
|
||||
diff --git ui/views/controls/button/label_button.cc ui/views/controls/button/label_button.cc
|
||||
index 7cf98686b710..9c18255901bb 100644
|
||||
index d56f4cb2f73c..c89650dbd675 100644
|
||||
--- ui/views/controls/button/label_button.cc
|
||||
+++ ui/views/controls/button/label_button.cc
|
||||
@@ -188,6 +188,7 @@ gfx::Size LabelButton::CalculatePreferredSize() const {
|
||||
@@ -187,6 +187,7 @@ gfx::Size LabelButton::CalculatePreferredSize() const {
|
||||
Label label(GetText(), {label_->font_list()});
|
||||
label.SetLineHeight(label_->line_height());
|
||||
label.SetShadows(label_->shadows());
|
||||
@@ -126,7 +126,7 @@ index 7cf98686b710..9c18255901bb 100644
|
||||
|
||||
if (style_ == STYLE_BUTTON) {
|
||||
// Some text appears wider when rendered normally than when rendered bold.
|
||||
@@ -406,6 +407,12 @@ std::unique_ptr<views::InkDropHighlight> LabelButton::CreateInkDropHighlight()
|
||||
@@ -405,6 +406,12 @@ std::unique_ptr<views::InkDropHighlight> LabelButton::CreateInkDropHighlight()
|
||||
gfx::RectF(image()->GetMirroredBounds()).CenterPoint());
|
||||
}
|
||||
|
||||
@@ -211,10 +211,10 @@ index 8fb11e1cf9cb..bd2951bd948b 100644
|
||||
// The time is used for simulating menu behavior for the menu button; that
|
||||
// is, if the menu is shown and the button is pressed, we need to close the
|
||||
diff --git ui/views/controls/label.cc ui/views/controls/label.cc
|
||||
index 6b6d5f02b8ab..0dc4d1f0f389 100644
|
||||
index b5baab3cbb18..ee82e1b05b60 100644
|
||||
--- ui/views/controls/label.cc
|
||||
+++ ui/views/controls/label.cc
|
||||
@@ -42,6 +42,20 @@ namespace {
|
||||
@@ -41,6 +41,20 @@ namespace {
|
||||
gfx::Insets NonBorderInsets(const Label& label) {
|
||||
return label.GetInsets() - label.View::GetInsets();
|
||||
}
|
||||
@@ -235,7 +235,7 @@ index 6b6d5f02b8ab..0dc4d1f0f389 100644
|
||||
} // namespace
|
||||
|
||||
const char Label::kViewClassName[] = "Label";
|
||||
@@ -203,6 +217,14 @@ void Label::SetElideBehavior(gfx::ElideBehavior elide_behavior) {
|
||||
@@ -202,6 +216,14 @@ void Label::SetElideBehavior(gfx::ElideBehavior elide_behavior) {
|
||||
ResetLayout();
|
||||
}
|
||||
|
||||
@@ -250,7 +250,7 @@ index 6b6d5f02b8ab..0dc4d1f0f389 100644
|
||||
void Label::SetTooltipText(const base::string16& tooltip_text) {
|
||||
DCHECK(handles_tooltips_);
|
||||
tooltip_text_ = tooltip_text;
|
||||
@@ -431,7 +453,19 @@ std::unique_ptr<gfx::RenderText> Label::CreateRenderText() const {
|
||||
@@ -430,7 +452,19 @@ std::unique_ptr<gfx::RenderText> Label::CreateRenderText() const {
|
||||
render_text->SetFontList(font_list());
|
||||
render_text->set_shadows(shadows());
|
||||
render_text->SetCursorEnabled(false);
|
||||
@@ -272,7 +272,7 @@ index 6b6d5f02b8ab..0dc4d1f0f389 100644
|
||||
render_text->SetMaxLines(multi_line() ? max_lines() : 0);
|
||||
render_text->SetWordWrapBehavior(full_text_->word_wrap_behavior());
|
||||
diff --git ui/views/controls/label.h ui/views/controls/label.h
|
||||
index 635025a82505..58899c5ec0aa 100644
|
||||
index 1d35afeda78f..333f9c0f778d 100644
|
||||
--- ui/views/controls/label.h
|
||||
+++ ui/views/controls/label.h
|
||||
@@ -153,6 +153,10 @@ class VIEWS_EXPORT Label : public View,
|
||||
@@ -286,7 +286,7 @@ index 635025a82505..58899c5ec0aa 100644
|
||||
// Sets the tooltip text. Default behavior for a label (single-line) is to
|
||||
// show the full text if it is wider than its bounds. Calling this overrides
|
||||
// the default behavior and lets you set a custom tooltip. To revert to
|
||||
@@ -367,6 +371,7 @@ class VIEWS_EXPORT Label : public View,
|
||||
@@ -370,6 +374,7 @@ class VIEWS_EXPORT Label : public View,
|
||||
bool collapse_when_hidden_;
|
||||
int fixed_width_;
|
||||
int max_width_;
|
||||
@@ -295,10 +295,10 @@ index 635025a82505..58899c5ec0aa 100644
|
||||
std::unique_ptr<SelectionController> selection_controller_;
|
||||
|
||||
diff --git ui/views/controls/menu/menu_controller.cc ui/views/controls/menu/menu_controller.cc
|
||||
index 4feb2cd4b2e7..c7590702bf95 100644
|
||||
index 1e6f6cc17281..bcecef51482e 100644
|
||||
--- ui/views/controls/menu/menu_controller.cc
|
||||
+++ ui/views/controls/menu/menu_controller.cc
|
||||
@@ -2261,8 +2261,13 @@ MenuItemView* MenuController::FindNextSelectableMenuItem(
|
||||
@@ -2316,8 +2316,13 @@ MenuItemView* MenuController::FindNextSelectableMenuItem(
|
||||
|
||||
void MenuController::OpenSubmenuChangeSelectionIfCan() {
|
||||
MenuItemView* item = pending_state_.item;
|
||||
@@ -313,7 +313,7 @@ index 4feb2cd4b2e7..c7590702bf95 100644
|
||||
MenuItemView* to_select = NULL;
|
||||
if (item->GetSubmenu()->GetMenuItemCount() > 0)
|
||||
to_select = FindInitialSelectableMenuItem(item, INCREMENT_SELECTION_DOWN);
|
||||
@@ -2277,8 +2282,10 @@ void MenuController::OpenSubmenuChangeSelectionIfCan() {
|
||||
@@ -2332,8 +2337,10 @@ void MenuController::OpenSubmenuChangeSelectionIfCan() {
|
||||
void MenuController::CloseSubmenu() {
|
||||
MenuItemView* item = state_.item;
|
||||
DCHECK(item);
|
||||
@@ -373,10 +373,10 @@ index 4dea63f9f286..ef50b710c5af 100644
|
||||
virtual int GetMaxWidthForMenu(MenuItemView* menu);
|
||||
|
||||
diff --git ui/views/controls/menu/menu_item_view.cc ui/views/controls/menu/menu_item_view.cc
|
||||
index 4cf7d61f7efe..d6f00c797979 100644
|
||||
index 257f71e6eaa4..1a53b4c6e2e7 100644
|
||||
--- ui/views/controls/menu/menu_item_view.cc
|
||||
+++ ui/views/controls/menu/menu_item_view.cc
|
||||
@@ -823,7 +823,12 @@ void MenuItemView::PaintButton(gfx::Canvas* canvas, PaintButtonMode mode) {
|
||||
@@ -842,7 +842,12 @@ void MenuItemView::PaintButton(gfx::Canvas* canvas, PaintButtonMode mode) {
|
||||
// only need the background when we want it to look different, as when we're
|
||||
// selected.
|
||||
ui::NativeTheme* native_theme = GetNativeTheme();
|
||||
@@ -390,7 +390,7 @@ index 4cf7d61f7efe..d6f00c797979 100644
|
||||
gfx::Rect item_bounds(0, 0, width(), height());
|
||||
AdjustBoundsForRTLUI(&item_bounds);
|
||||
|
||||
@@ -933,6 +938,13 @@ void MenuItemView::PaintMinorIconAndText(gfx::Canvas* canvas, SkColor color) {
|
||||
@@ -952,6 +957,13 @@ void MenuItemView::PaintMinorIconAndText(gfx::Canvas* canvas, SkColor color) {
|
||||
SkColor MenuItemView::GetTextColor(bool minor,
|
||||
bool render_selection,
|
||||
bool emphasized) const {
|
||||
@@ -402,13 +402,13 @@ index 4cf7d61f7efe..d6f00c797979 100644
|
||||
+ }
|
||||
+
|
||||
ui::NativeTheme::ColorId color_id =
|
||||
minor ? ui::NativeTheme::kColorId_MenuItemSubtitleColor
|
||||
minor ? ui::NativeTheme::kColorId_MenuItemMinorTextColor
|
||||
: ui::NativeTheme::kColorId_EnabledMenuItemForegroundColor;
|
||||
diff --git ui/views/controls/menu/menu_model_adapter.cc ui/views/controls/menu/menu_model_adapter.cc
|
||||
index 2a540157090f..23aa93f96d76 100644
|
||||
index e1a2339bddbf..1f209c328a94 100644
|
||||
--- ui/views/controls/menu/menu_model_adapter.cc
|
||||
+++ ui/views/controls/menu/menu_model_adapter.cc
|
||||
@@ -245,6 +245,77 @@ void MenuModelAdapter::SelectionChanged(MenuItemView* menu) {
|
||||
@@ -228,6 +228,77 @@ void MenuModelAdapter::SelectionChanged(MenuItemView* menu) {
|
||||
NOTREACHED();
|
||||
}
|
||||
|
||||
@@ -512,10 +512,10 @@ index 0ac493c3c6a0..741769e90eb0 100644
|
||||
void WillHideMenu(MenuItemView* menu) override;
|
||||
void OnMenuClosed(MenuItemView* menu) override;
|
||||
diff --git ui/views/controls/menu/menu_scroll_view_container.cc ui/views/controls/menu/menu_scroll_view_container.cc
|
||||
index 01069fe8680b..928ee7cb4d90 100644
|
||||
index 2e2e6b2aa26e..0c2ce1af6021 100644
|
||||
--- ui/views/controls/menu/menu_scroll_view_container.cc
|
||||
+++ ui/views/controls/menu/menu_scroll_view_container.cc
|
||||
@@ -184,6 +184,11 @@ MenuScrollViewContainer::MenuScrollViewContainer(SubmenuView* content_view)
|
||||
@@ -183,6 +183,11 @@ MenuScrollViewContainer::MenuScrollViewContainer(SubmenuView* content_view)
|
||||
scroll_view_ = new MenuScrollView(content_view);
|
||||
AddChildView(scroll_view_);
|
||||
|
||||
@@ -528,7 +528,7 @@ index 01069fe8680b..928ee7cb4d90 100644
|
||||
content_view_->GetMenuItem()->GetMenuController()->GetAnchorPosition());
|
||||
|
||||
diff --git ui/views/test/ui_controls_factory_desktop_aurax11.cc ui/views/test/ui_controls_factory_desktop_aurax11.cc
|
||||
index 875ac82283b3..44424b2ce138 100644
|
||||
index 9e16b4c88177..3d660e406709 100644
|
||||
--- ui/views/test/ui_controls_factory_desktop_aurax11.cc
|
||||
+++ ui/views/test/ui_controls_factory_desktop_aurax11.cc
|
||||
@@ -140,10 +140,6 @@ class UIControlsDesktopX11 : public UIControlsAura {
|
||||
|
Reference in New Issue
Block a user