OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/views/frame/glass_browser_frame_view.h" | 5 #include "chrome/browser/views/frame/glass_browser_frame_view.h" |
6 | 6 |
7 #include "chrome/browser/views/frame/browser_view.h" | 7 #include "chrome/browser/views/frame/browser_view.h" |
8 #include "chrome/browser/views/tabs/tab_strip.h" | 8 #include "chrome/browser/views/tabs/tab_strip.h" |
9 #include "chrome/common/gfx/chrome_canvas.h" | 9 #include "chrome/common/gfx/chrome_canvas.h" |
10 #include "chrome/common/resource_bundle.h" | 10 #include "chrome/common/resource_bundle.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 static SkBitmap* standard_frame_bitmaps_[FRAME_PART_BITMAP_COUNT]; | 60 static SkBitmap* standard_frame_bitmaps_[FRAME_PART_BITMAP_COUNT]; |
61 | 61 |
62 DISALLOW_EVIL_CONSTRUCTORS(GlassBrowserWindowResources); | 62 DISALLOW_EVIL_CONSTRUCTORS(GlassBrowserWindowResources); |
63 }; | 63 }; |
64 | 64 |
65 // static | 65 // static |
66 SkBitmap* GlassBrowserWindowResources::standard_frame_bitmaps_[]; | 66 SkBitmap* GlassBrowserWindowResources::standard_frame_bitmaps_[]; |
67 | 67 |
68 GlassBrowserWindowResources* GlassBrowserFrameView::resources_ = NULL; | 68 GlassBrowserWindowResources* GlassBrowserFrameView::resources_ = NULL; |
69 SkBitmap* GlassBrowserFrameView::distributor_logo_ = NULL; | 69 SkBitmap* GlassBrowserFrameView::distributor_logo_ = NULL; |
70 HICON GlassBrowserFrameView::throbber_icons_[GlassBrowserFrameView::kThrobberIco
nCount]; | 70 HICON GlassBrowserFrameView::throbber_icons_[ |
| 71 GlassBrowserFrameView::kThrobberIconCount]; |
71 | 72 |
72 namespace { | 73 namespace { |
73 // There are 3 px of client edge drawn inside the outer frame borders. | 74 // There are 3 px of client edge drawn inside the outer frame borders. |
74 const int kNonClientBorderThickness = 3; | 75 const int kNonClientBorderThickness = 3; |
75 // Besides the frame border, there's another 11 px of empty space atop the | 76 // Besides the frame border, there's another 11 px of empty space atop the |
76 // window in restored mode, to use to drag the window around. | 77 // window in restored mode, to use to drag the window around. |
77 const int kNonClientRestoredExtraThickness = 11; | 78 const int kNonClientRestoredExtraThickness = 11; |
78 // In the window corners, the resize areas don't actually expand bigger, but the | 79 // In the window corners, the resize areas don't actually expand bigger, but the |
79 // 16 px at the end of the top and bottom edges triggers diagonal resizing. | 80 // 16 px at the end of the top and bottom edges triggers diagonal resizing. |
80 const int kResizeAreaCornerSize = 16; | 81 const int kResizeAreaCornerSize = 16; |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 | 422 |
422 #if defined(GOOGLE_CHROME_BUILD) | 423 #if defined(GOOGLE_CHROME_BUILD) |
423 distributor_logo_ = ResourceBundle::GetSharedInstance(). | 424 distributor_logo_ = ResourceBundle::GetSharedInstance(). |
424 GetBitmapNamed(IDR_DISTRIBUTOR_LOGO); | 425 GetBitmapNamed(IDR_DISTRIBUTOR_LOGO); |
425 #endif | 426 #endif |
426 | 427 |
427 initialized = true; | 428 initialized = true; |
428 } | 429 } |
429 } | 430 } |
430 | 431 |
OLD | NEW |