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 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "chrome/browser/ui/views/frame/browser_frame_win.h" | 10 #include "chrome/browser/ui/views/frame/browser_frame_win.h" |
11 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h" | 11 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h" |
12 #include "content/public/browser/notification_observer.h" | 12 #include "content/public/browser/notification_observer.h" |
13 #include "content/public/browser/notification_registrar.h" | 13 #include "content/public/browser/notification_registrar.h" |
| 14 #include "ui/views/window/non_client_view.h" |
14 #include "views/controls/button/button.h" | 15 #include "views/controls/button/button.h" |
15 #include "views/window/non_client_view.h" | |
16 | 16 |
17 class BrowserView; | 17 class BrowserView; |
18 class AvatarMenuButton; | 18 class AvatarMenuButton; |
19 class SkBitmap; | 19 class SkBitmap; |
20 | 20 |
21 class GlassBrowserFrameView : public BrowserNonClientFrameView, | 21 class GlassBrowserFrameView : public BrowserNonClientFrameView, |
22 public content::NotificationObserver { | 22 public content::NotificationObserver { |
23 public: | 23 public: |
24 // Constructs a non-client view for an BrowserFrame. | 24 // Constructs a non-client view for an BrowserFrame. |
25 GlassBrowserFrameView(BrowserFrame* frame, BrowserView* browser_view); | 25 GlassBrowserFrameView(BrowserFrame* frame, BrowserView* browser_view); |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 content::NotificationRegistrar registrar_; | 103 content::NotificationRegistrar registrar_; |
104 | 104 |
105 static const int kThrobberIconCount = 24; | 105 static const int kThrobberIconCount = 24; |
106 static HICON throbber_icons_[kThrobberIconCount]; | 106 static HICON throbber_icons_[kThrobberIconCount]; |
107 static void InitThrobberIcons(); | 107 static void InitThrobberIcons(); |
108 | 108 |
109 DISALLOW_COPY_AND_ASSIGN(GlassBrowserFrameView); | 109 DISALLOW_COPY_AND_ASSIGN(GlassBrowserFrameView); |
110 }; | 110 }; |
111 | 111 |
112 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ | 112 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ |
OLD | NEW |