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

Side by Side Diff: chrome/browser/ui/views/outdated_upgrade_bubble_view.cc

Issue 2837153003: Views/Harmony Remove references to ui/views/layout/layout_constants.h (Closed)
Patch Set: Fix build redness Created 3 years, 7 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "chrome/browser/ui/views/outdated_upgrade_bubble_view.h" 5 #include "chrome/browser/ui/views/outdated_upgrade_bubble_view.h"
6 6
7 #include "base/metrics/histogram_macros.h" 7 #include "base/metrics/histogram_macros.h"
8 #include "base/metrics/user_metrics.h" 8 #include "base/metrics/user_metrics.h"
9 #include "base/task_scheduler/post_task.h" 9 #include "base/task_scheduler/post_task.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
11 #include "chrome/browser/browser_process.h" 11 #include "chrome/browser/browser_process.h"
12 #include "chrome/browser/ui/browser_dialogs.h" 12 #include "chrome/browser/ui/browser_dialogs.h"
13 #include "chrome/browser/ui/layout_constants.h" 13 #include "chrome/browser/ui/layout_constants.h"
14 #include "chrome/browser/ui/views/elevation_icon_setter.h" 14 #include "chrome/browser/ui/views/elevation_icon_setter.h"
15 #include "chrome/browser/upgrade_detector.h" 15 #include "chrome/browser/upgrade_detector.h"
16 #include "chrome/common/pref_names.h" 16 #include "chrome/common/pref_names.h"
17 #include "chrome/grit/chromium_strings.h" 17 #include "chrome/grit/chromium_strings.h"
18 #include "chrome/grit/generated_resources.h" 18 #include "chrome/grit/generated_resources.h"
19 #include "components/prefs/pref_service.h" 19 #include "components/prefs/pref_service.h"
20 #include "content/public/browser/page_navigator.h" 20 #include "content/public/browser/page_navigator.h"
21 #include "ui/base/l10n/l10n_util.h" 21 #include "ui/base/l10n/l10n_util.h"
22 #include "ui/views/controls/label.h" 22 #include "ui/views/controls/label.h"
23 #include "ui/views/layout/fill_layout.h" 23 #include "ui/views/layout/fill_layout.h"
24 #include "ui/views/layout/layout_constants.h"
25 #include "ui/views/widget/widget.h" 24 #include "ui/views/widget/widget.h"
26 #include "url/gurl.h" 25 #include "url/gurl.h"
27 26
28 #if defined(OS_WIN) 27 #if defined(OS_WIN)
29 #include "chrome/installer/util/google_update_util.h" 28 #include "chrome/installer/util/google_update_util.h"
30 #endif 29 #endif
31 30
32 namespace { 31 namespace {
33 32
34 // Fixed width of the description label of the bubble. 33 // Fixed width of the description label of the bubble.
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 content::PageNavigator* navigator, 181 content::PageNavigator* navigator,
183 bool auto_update_enabled) 182 bool auto_update_enabled)
184 : BubbleDialogDelegateView(anchor_view, views::BubbleBorder::TOP_RIGHT), 183 : BubbleDialogDelegateView(anchor_view, views::BubbleBorder::TOP_RIGHT),
185 auto_update_enabled_(auto_update_enabled), 184 auto_update_enabled_(auto_update_enabled),
186 navigator_(navigator) { 185 navigator_(navigator) {
187 // Compensate for built-in vertical padding in the anchor view's image. 186 // Compensate for built-in vertical padding in the anchor view's image.
188 set_anchor_view_insets(gfx::Insets( 187 set_anchor_view_insets(gfx::Insets(
189 GetLayoutConstant(LOCATION_BAR_BUBBLE_ANCHOR_VERTICAL_INSET), 0)); 188 GetLayoutConstant(LOCATION_BAR_BUBBLE_ANCHOR_VERTICAL_INSET), 0));
190 chrome::RecordDialogCreation(chrome::DialogIdentifier::OUTDATED_UPGRADE); 189 chrome::RecordDialogCreation(chrome::DialogIdentifier::OUTDATED_UPGRADE);
191 } 190 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/network_profile_bubble_view.cc ('k') | chrome/browser/ui/views/session_crashed_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698