| 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; |
| 47 virtual void ResetWindowControls() OVERRIDE; | 48 virtual void ResetWindowControls() OVERRIDE; |
| 48 virtual void UpdateWindowIcon() OVERRIDE; | 49 virtual void UpdateWindowIcon() OVERRIDE; |
| 49 | 50 |
| 50 // Overridden from views::View: | 51 // Overridden from views::View: |
| 51 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 52 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
| 52 virtual void Layout() OVERRIDE; | 53 virtual void Layout() OVERRIDE; |
| 53 | 54 |
| 54 // Overridden from views::ButtonListener: | 55 // Overridden from views::ButtonListener: |
| 55 virtual void ButtonPressed(views::Button* sender, const views::Event& event) | 56 virtual void ButtonPressed(views::Button* sender, const views::Event& event) |
| 56 OVERRIDE; | 57 OVERRIDE; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 // The accessible name of this view. | 113 // The accessible name of this view. |
| 113 std::wstring accessible_name_; | 114 std::wstring accessible_name_; |
| 114 | 115 |
| 115 static void InitAppWindowResources(); | 116 static void InitAppWindowResources(); |
| 116 static gfx::Font* title_font_; | 117 static gfx::Font* title_font_; |
| 117 | 118 |
| 118 DISALLOW_COPY_AND_ASSIGN(AppPanelBrowserFrameView); | 119 DISALLOW_COPY_AND_ASSIGN(AppPanelBrowserFrameView); |
| 119 }; | 120 }; |
| 120 | 121 |
| 121 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_APP_PANEL_BROWSER_FRAME_VIEW_H_ | 122 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_APP_PANEL_BROWSER_FRAME_VIEW_H_ |
| OLD | NEW |