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

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

Issue 2904443006: Views/Harmony Remove references to ui/views/layout/layout_constants.h (Closed)
Patch Set: Add layout_constants.h back to dialog_example.cc as it refers to kUnrelatedControlVerticalSpacing. … Created 3 years, 6 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
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 "base/metrics/histogram_macros.h" 7 #include "base/metrics/histogram_macros.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "ui/accessibility/ax_node_data.h" 9 #include "ui/accessibility/ax_node_data.h"
10 #include "ui/base/default_style.h" 10 #include "ui/base/default_style.h"
11 #include "ui/base/material_design/material_design_controller.h" 11 #include "ui/base/material_design/material_design_controller.h"
12 #include "ui/base/resource/resource_bundle.h" 12 #include "ui/base/resource/resource_bundle.h"
13 #include "ui/gfx/color_utils.h" 13 #include "ui/gfx/color_utils.h"
14 #include "ui/gfx/geometry/rect.h" 14 #include "ui/gfx/geometry/rect.h"
15 #include "ui/native_theme/native_theme.h" 15 #include "ui/native_theme/native_theme.h"
16 #include "ui/views/bubble/bubble_frame_view.h" 16 #include "ui/views/bubble/bubble_frame_view.h"
17 #include "ui/views/focus/view_storage.h" 17 #include "ui/views/focus/view_storage.h"
18 #include "ui/views/layout/layout_constants.h"
19 #include "ui/views/layout/layout_provider.h" 18 #include "ui/views/layout/layout_provider.h"
20 #include "ui/views/style/platform_style.h" 19 #include "ui/views/style/platform_style.h"
21 #include "ui/views/widget/widget.h" 20 #include "ui/views/widget/widget.h"
22 #include "ui/views/widget/widget_observer.h" 21 #include "ui/views/widget/widget_observer.h"
23 #include "ui/views/window/dialog_client_view.h" 22 #include "ui/views/window/dialog_client_view.h"
24 23
25 #if defined(OS_WIN) 24 #if defined(OS_WIN)
26 #include "ui/base/win/shell.h" 25 #include "ui/base/win/shell.h"
27 #endif 26 #endif
28 27
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 // http://crbug.com/474622 for details. 321 // http://crbug.com/474622 for details.
323 if (widget == GetWidget() && visible) { 322 if (widget == GetWidget() && visible) {
324 ui::AXNodeData node_data; 323 ui::AXNodeData node_data;
325 GetAccessibleNodeData(&node_data); 324 GetAccessibleNodeData(&node_data);
326 if (node_data.role == ui::AX_ROLE_ALERT_DIALOG) 325 if (node_data.role == ui::AX_ROLE_ALERT_DIALOG)
327 NotifyAccessibilityEvent(ui::AX_EVENT_ALERT, true); 326 NotifyAccessibilityEvent(ui::AX_EVENT_ALERT, true);
328 } 327 }
329 } 328 }
330 329
331 } // namespace views 330 } // namespace views
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/translate/translate_bubble_view_unittest.cc ('k') | ui/views/bubble/bubble_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698