| OLD | NEW |
| 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/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" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 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_skia.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 "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; |
| 39 // Besides the frame border, there's another 11 px of empty space atop the | 39 // Besides the frame border, there's another 11 px of empty space atop the |
| 40 // window in restored mode, to use to drag the window around. | 40 // window in restored mode, to use to drag the window around. |
| 41 const int kNonClientRestoredExtraThickness = 11; | 41 const int kNonClientRestoredExtraThickness = 11; |
| (...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 static bool initialized = false; | 491 static bool initialized = false; |
| 492 if (!initialized) { | 492 if (!initialized) { |
| 493 ResourceBundle &rb = ResourceBundle::GetSharedInstance(); | 493 ResourceBundle &rb = ResourceBundle::GetSharedInstance(); |
| 494 for (int i = 0; i < kThrobberIconCount; ++i) { | 494 for (int i = 0; i < kThrobberIconCount; ++i) { |
| 495 throbber_icons_[i] = rb.LoadThemeIcon(IDI_THROBBER_01 + i); | 495 throbber_icons_[i] = rb.LoadThemeIcon(IDI_THROBBER_01 + i); |
| 496 DCHECK(throbber_icons_[i]); | 496 DCHECK(throbber_icons_[i]); |
| 497 } | 497 } |
| 498 initialized = true; | 498 initialized = true; |
| 499 } | 499 } |
| 500 } | 500 } |
| OLD | NEW |