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_APP_PANEL_BROWSER_FRAME_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_APP_PANEL_BROWSER_FRAME_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_APP_PANEL_BROWSER_FRAME_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_APP_PANEL_BROWSER_FRAME_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/ui/views/frame/browser_frame.h" | |
10 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h" | 9 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h" |
11 #include "chrome/browser/ui/views/tab_icon_view.h" | 10 #include "chrome/browser/ui/views/tab_icon_view.h" |
12 #include "ui/views/controls/button/button.h" | 11 #include "ui/views/controls/button/button.h" |
13 #include "ui/views/window/non_client_view.h" | |
14 | 12 |
| 13 class BrowserFrame; |
15 class BrowserView; | 14 class BrowserView; |
16 namespace gfx { | 15 |
17 class Font; | |
18 } | |
19 namespace views { | 16 namespace views { |
20 class ImageButton; | 17 class ImageButton; |
21 } | 18 } |
22 // The frame view which is used for Application Panels. | 19 // The frame view which is used for Application Panels. |
23 // TODO(rafaelw): Refactor. This shares much duplicated code with | 20 // TODO(rafaelw): Refactor. This shares much duplicated code with |
24 // OpaqueBrowserFrameView. | 21 // OpaqueBrowserFrameView. |
25 class AppPanelBrowserFrameView : public BrowserNonClientFrameView, | 22 class AppPanelBrowserFrameView : public BrowserNonClientFrameView, |
26 public views::ButtonListener, | 23 public views::ButtonListener, |
27 public TabIconView::TabIconViewModel { | 24 public TabIconView::TabIconViewModel { |
28 public: | 25 public: |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 | 99 |
103 // Window controls. | 100 // Window controls. |
104 views::ImageButton* close_button_; | 101 views::ImageButton* close_button_; |
105 | 102 |
106 // The Window icon. | 103 // The Window icon. |
107 TabIconView* window_icon_; | 104 TabIconView* window_icon_; |
108 | 105 |
109 // The bounds of the ClientView. | 106 // The bounds of the ClientView. |
110 gfx::Rect client_view_bounds_; | 107 gfx::Rect client_view_bounds_; |
111 | 108 |
112 // The accessible name of this view. | |
113 std::wstring accessible_name_; | |
114 | |
115 static void InitAppWindowResources(); | |
116 static gfx::Font* title_font_; | |
117 | |
118 DISALLOW_COPY_AND_ASSIGN(AppPanelBrowserFrameView); | 109 DISALLOW_COPY_AND_ASSIGN(AppPanelBrowserFrameView); |
119 }; | 110 }; |
120 | 111 |
121 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_APP_PANEL_BROWSER_FRAME_VIEW_H_ | 112 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_APP_PANEL_BROWSER_FRAME_VIEW_H_ |
OLD | NEW |