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

Side by Side Diff: chrome/browser/ui/views/frame/glass_browser_frame_view.cc

Issue 9562038: ui/gfx: Make gfx::Canvas inherit from gfx::CanvasSkia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more two win fixes Created 8 years, 9 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/frame/glass_browser_frame_view.h" 5 #include "chrome/browser/ui/views/frame/glass_browser_frame_view.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/app/chrome_command_ids.h" 9 #include "chrome/app/chrome_command_ids.h"
10 #include "chrome/app/chrome_dll_resource.h" 10 #include "chrome/app/chrome_dll_resource.h"
11 #include "chrome/browser/prefs/pref_service.h" 11 #include "chrome/browser/prefs/pref_service.h"
12 #include "chrome/browser/themes/theme_service.h" 12 #include "chrome/browser/themes/theme_service.h"
13 #include "chrome/browser/ui/views/avatar_menu_button.h" 13 #include "chrome/browser/ui/views/avatar_menu_button.h"
14 #include "chrome/browser/ui/views/frame/browser_view.h" 14 #include "chrome/browser/ui/views/frame/browser_view.h"
15 #include "chrome/browser/ui/views/tabs/tab.h" 15 #include "chrome/browser/ui/views/tabs/tab.h"
16 #include "chrome/browser/ui/views/tabs/tab_strip.h" 16 #include "chrome/browser/ui/views/tabs/tab_strip.h"
17 #include "chrome/common/chrome_notification_types.h" 17 #include "chrome/common/chrome_notification_types.h"
18 #include "chrome/common/chrome_switches.h" 18 #include "chrome/common/chrome_switches.h"
19 #include "chrome/common/pref_names.h" 19 #include "chrome/common/pref_names.h"
20 #include "content/public/browser/notification_service.h" 20 #include "content/public/browser/notification_service.h"
21 #include "grit/generated_resources.h" 21 #include "grit/generated_resources.h"
22 #include "grit/theme_resources.h" 22 #include "grit/theme_resources.h"
23 #include "grit/theme_resources_standard.h" 23 #include "grit/theme_resources_standard.h"
24 #include "grit/ui_resources.h" 24 #include "grit/ui_resources.h"
25 #include "ui/base/l10n/l10n_util.h" 25 #include "ui/base/l10n/l10n_util.h"
26 #include "ui/base/resource/resource_bundle.h" 26 #include "ui/base/resource/resource_bundle.h"
27 #include "ui/base/theme_provider.h" 27 #include "ui/base/theme_provider.h"
28 #include "ui/gfx/canvas_skia.h" 28 #include "ui/gfx/canvas.h"
29 #include "ui/gfx/icon_util.h" 29 #include "ui/gfx/icon_util.h"
30 #include "ui/gfx/image/image.h" 30 #include "ui/gfx/image/image.h"
31 #include "ui/views/window/client_view.h" 31 #include "ui/views/window/client_view.h"
32 32
33 HICON GlassBrowserFrameView::throbber_icons_[ 33 HICON GlassBrowserFrameView::throbber_icons_[
34 GlassBrowserFrameView::kThrobberIconCount]; 34 GlassBrowserFrameView::kThrobberIconCount];
35 35
36 namespace { 36 namespace {
37 // There are 3 px of client edge drawn inside the outer frame borders. 37 // There are 3 px of client edge drawn inside the outer frame borders.
38 const int kNonClientBorderThickness = 3; 38 const int kNonClientBorderThickness = 3;
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 static bool initialized = false; 492 static bool initialized = false;
493 if (!initialized) { 493 if (!initialized) {
494 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); 494 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
495 for (int i = 0; i < kThrobberIconCount; ++i) { 495 for (int i = 0; i < kThrobberIconCount; ++i) {
496 throbber_icons_[i] = rb.LoadThemeIcon(IDI_THROBBER_01 + i); 496 throbber_icons_[i] = rb.LoadThemeIcon(IDI_THROBBER_01 + i);
497 DCHECK(throbber_icons_[i]); 497 DCHECK(throbber_icons_[i]);
498 } 498 }
499 initialized = true; 499 initialized = true;
500 } 500 }
501 } 501 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.cc ('k') | chrome/browser/ui/views/frame/opaque_browser_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698