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" | 9 #include "chrome/browser/ui/views/frame/browser_frame.h" |
10 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h" | 10 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 virtual gfx::Size GetMinimumSize() OVERRIDE; | 37 virtual gfx::Size GetMinimumSize() OVERRIDE; |
38 | 38 |
39 protected: | 39 protected: |
40 // Overridden from views::NonClientFrameView: | 40 // Overridden from views::NonClientFrameView: |
41 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; | 41 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; |
42 virtual gfx::Rect GetWindowBoundsForClientBounds( | 42 virtual gfx::Rect GetWindowBoundsForClientBounds( |
43 const gfx::Rect& client_bounds) const OVERRIDE; | 43 const gfx::Rect& client_bounds) const OVERRIDE; |
44 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; | 44 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; |
45 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) | 45 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) |
46 OVERRIDE; | 46 OVERRIDE; |
47 virtual void EnableClose(bool enable) OVERRIDE; | |
48 virtual void ResetWindowControls() OVERRIDE; | 47 virtual void ResetWindowControls() OVERRIDE; |
49 virtual void UpdateWindowIcon() OVERRIDE; | 48 virtual void UpdateWindowIcon() OVERRIDE; |
50 | 49 |
51 // Overridden from views::View: | 50 // Overridden from views::View: |
52 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 51 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
53 virtual void Layout() OVERRIDE; | 52 virtual void Layout() OVERRIDE; |
54 | 53 |
55 // Overridden from views::ButtonListener: | 54 // Overridden from views::ButtonListener: |
56 virtual void ButtonPressed(views::Button* sender, const views::Event& event) | 55 virtual void ButtonPressed(views::Button* sender, const views::Event& event) |
57 OVERRIDE; | 56 OVERRIDE; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 // The accessible name of this view. | 112 // The accessible name of this view. |
114 std::wstring accessible_name_; | 113 std::wstring accessible_name_; |
115 | 114 |
116 static void InitAppWindowResources(); | 115 static void InitAppWindowResources(); |
117 static gfx::Font* title_font_; | 116 static gfx::Font* title_font_; |
118 | 117 |
119 DISALLOW_COPY_AND_ASSIGN(AppPanelBrowserFrameView); | 118 DISALLOW_COPY_AND_ASSIGN(AppPanelBrowserFrameView); |
120 }; | 119 }; |
121 | 120 |
122 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_APP_PANEL_BROWSER_FRAME_VIEW_H_ | 121 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_APP_PANEL_BROWSER_FRAME_VIEW_H_ |
OLD | NEW |