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

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

Issue 6312156: Change includes of gfx/* to ui/gfx/* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/theme_install_bubble_view.h" 5 #include "chrome/browser/ui/views/theme_install_bubble_view.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/browser/tab_contents/tab_contents.h" 8 #include "chrome/browser/tab_contents/tab_contents.h"
9 #include "chrome/common/notification_service.h" 9 #include "chrome/common/notification_service.h"
10 #include "gfx/canvas_skia.h"
11 #include "grit/generated_resources.h" 10 #include "grit/generated_resources.h"
12 #include "ui/base/l10n/l10n_util.h" 11 #include "ui/base/l10n/l10n_util.h"
13 #include "ui/base/resource/resource_bundle.h" 12 #include "ui/base/resource/resource_bundle.h"
13 #include "ui/gfx/canvas_skia.h"
14 #include "views/widget/widget.h" 14 #include "views/widget/widget.h"
15 15
16 namespace { 16 namespace {
17 17
18 // The roundedness of the edges of our bubble. 18 // The roundedness of the edges of our bubble.
19 static const int kBubbleCornerRadius = 4; 19 static const int kBubbleCornerRadius = 4;
20 20
21 // Padding around text in popup box. 21 // Padding around text in popup box.
22 static const int kTextHorizPadding = 90; 22 static const int kTextHorizPadding = 90;
23 static const int kTextVertPadding = 45; 23 static const int kTextVertPadding = 45;
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 const NotificationDetails& details) { 161 const NotificationDetails& details) {
162 Close(); 162 Close();
163 } 163 }
164 164
165 // static 165 // static
166 void ThemeInstallBubbleView::Show(TabContents* tab_contents) { 166 void ThemeInstallBubbleView::Show(TabContents* tab_contents) {
167 ++num_loads_extant_; 167 ++num_loads_extant_;
168 if (num_loads_extant_ < 2) 168 if (num_loads_extant_ < 2)
169 new ThemeInstallBubbleView(tab_contents); 169 new ThemeInstallBubbleView(tab_contents);
170 } 170 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/theme_install_bubble_view.h ('k') | chrome/browser/ui/views/toolbar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698