Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(181)

Side by Side Diff: ui/views/bubble/bubble_dialog_delegate.cc

Issue 2588103004: Apply new WM shadows to app list. (Closed)
Patch Set: remove references on testing bots Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/views/bubble/bubble_dialog_delegate.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/views/bubble/bubble_dialog_delegate.h" 5 #include "ui/views/bubble/bubble_dialog_delegate.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 #include "ui/accessibility/ax_node_data.h" 8 #include "ui/accessibility/ax_node_data.h"
9 #include "ui/base/material_design/material_design_controller.h" 9 #include "ui/base/material_design/material_design_controller.h"
10 #include "ui/base/resource/resource_bundle.h" 10 #include "ui/base/resource/resource_bundle.h"
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 anchor_widget_(NULL), 210 anchor_widget_(NULL),
211 arrow_(arrow), 211 arrow_(arrow),
212 mirror_arrow_in_rtl_(PlatformStyle::kMirrorBubbleArrowInRTLByDefault), 212 mirror_arrow_in_rtl_(PlatformStyle::kMirrorBubbleArrowInRTLByDefault),
213 shadow_(BubbleBorder::SMALL_SHADOW), 213 shadow_(BubbleBorder::SMALL_SHADOW),
214 color_explicitly_set_(false), 214 color_explicitly_set_(false),
215 margins_(kPanelVertMargin, 215 margins_(kPanelVertMargin,
216 kPanelHorizMargin, 216 kPanelHorizMargin,
217 kPanelVertMargin, 217 kPanelVertMargin,
218 kPanelHorizMargin), 218 kPanelHorizMargin),
219 accept_events_(true), 219 accept_events_(true),
220 border_accepts_events_(true),
221 adjust_if_offscreen_(true), 220 adjust_if_offscreen_(true),
222 parent_window_(NULL) { 221 parent_window_(NULL) {
223 if (anchor_view) 222 if (anchor_view)
224 SetAnchorView(anchor_view); 223 SetAnchorView(anchor_view);
225 UpdateColorsFromTheme(GetNativeTheme()); 224 UpdateColorsFromTheme(GetNativeTheme());
226 } 225 }
227 226
228 gfx::Rect BubbleDialogDelegateView::GetBubbleBounds() { 227 gfx::Rect BubbleDialogDelegateView::GetBubbleBounds() {
229 // The argument rect has its origin at the bubble's arrow anchor point; 228 // The argument rect has its origin at the bubble's arrow anchor point;
230 // its size is the preferred size of the bubble's client view (this view). 229 // its size is the preferred size of the bubble's client view (this view).
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 // http://crbug.com/474622 for details. 319 // http://crbug.com/474622 for details.
321 if (widget == GetWidget() && visible) { 320 if (widget == GetWidget() && visible) {
322 ui::AXNodeData node_data; 321 ui::AXNodeData node_data;
323 GetAccessibleNodeData(&node_data); 322 GetAccessibleNodeData(&node_data);
324 if (node_data.role == ui::AX_ROLE_ALERT_DIALOG) 323 if (node_data.role == ui::AX_ROLE_ALERT_DIALOG)
325 NotifyAccessibilityEvent(ui::AX_EVENT_ALERT, true); 324 NotifyAccessibilityEvent(ui::AX_EVENT_ALERT, true);
326 } 325 }
327 } 326 }
328 327
329 } // namespace views 328 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/bubble/bubble_dialog_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698