| 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_OPAQUE_BROWSER_FRAME_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_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.h" | 10 #include "chrome/browser/ui/views/frame/browser_frame.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 "chrome/browser/ui/views/tab_icon_view.h" | 12 #include "chrome/browser/ui/views/tab_icon_view.h" |
| 13 #include "content/public/browser/notification_observer.h" | 13 #include "content/public/browser/notification_observer.h" |
| 14 #include "content/public/browser/notification_registrar.h" | 14 #include "content/public/browser/notification_registrar.h" |
| 15 #include "views/controls/button/button.h" | 15 #include "views/controls/button/button.h" |
| 16 #include "views/window/non_client_view.h" | 16 #include "views/window/non_client_view.h" |
| 17 | 17 |
| 18 class BrowserView; | 18 class BrowserView; |
| 19 namespace gfx { | |
| 20 class Font; | |
| 21 } | |
| 22 class TabContents; | |
| 23 namespace views { | 19 namespace views { |
| 24 class ImageButton; | 20 class ImageButton; |
| 25 class ImageView; | |
| 26 } | 21 } |
| 27 | 22 |
| 28 class OpaqueBrowserFrameView : public BrowserNonClientFrameView, | 23 class OpaqueBrowserFrameView : public BrowserNonClientFrameView, |
| 29 public content::NotificationObserver, | 24 public content::NotificationObserver, |
| 30 public views::ButtonListener, | 25 public views::ButtonListener, |
| 31 public TabIconView::TabIconViewModel { | 26 public TabIconView::TabIconViewModel { |
| 32 public: | 27 public: |
| 33 // Constructs a non-client view for an BrowserFrame. | 28 // Constructs a non-client view for an BrowserFrame. |
| 34 OpaqueBrowserFrameView(BrowserFrame* frame, BrowserView* browser_view); | 29 OpaqueBrowserFrameView(BrowserFrame* frame, BrowserView* browser_view); |
| 35 virtual ~OpaqueBrowserFrameView(); | 30 virtual ~OpaqueBrowserFrameView(); |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 | 162 |
| 168 // The bounds of the ClientView. | 163 // The bounds of the ClientView. |
| 169 gfx::Rect client_view_bounds_; | 164 gfx::Rect client_view_bounds_; |
| 170 | 165 |
| 171 content::NotificationRegistrar registrar_; | 166 content::NotificationRegistrar registrar_; |
| 172 | 167 |
| 173 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameView); | 168 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameView); |
| 174 }; | 169 }; |
| 175 | 170 |
| 176 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ | 171 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ |
| OLD | NEW |