| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ |
| 6 #define CHROME_BROWSER_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ | 6 #define CHROME_BROWSER_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/views/frame/browser_frame.h" | 8 #include "chrome/browser/views/frame/browser_frame.h" |
| 9 #include "chrome/browser/views/tab_icon_view.h" | 9 #include "chrome/browser/views/tab_icon_view.h" |
| 10 #include "views/controls/button/button.h" | 10 #include "views/controls/button/button.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 virtual gfx::Rect GetBoundsForClientView() const; | 40 virtual gfx::Rect GetBoundsForClientView() const; |
| 41 virtual gfx::Rect GetWindowBoundsForClientBounds( | 41 virtual gfx::Rect GetWindowBoundsForClientBounds( |
| 42 const gfx::Rect& client_bounds) const; | 42 const gfx::Rect& client_bounds) const; |
| 43 virtual gfx::Point GetSystemMenuPoint() const; | 43 virtual gfx::Point GetSystemMenuPoint() const; |
| 44 virtual int NonClientHitTest(const gfx::Point& point); | 44 virtual int NonClientHitTest(const gfx::Point& point); |
| 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 virtual void EnableClose(bool enable); | 46 virtual void EnableClose(bool enable); |
| 47 virtual void ResetWindowControls(); | 47 virtual void ResetWindowControls(); |
| 48 | 48 |
| 49 // Overridden from views::View: | 49 // Overridden from views::View: |
| 50 virtual void Paint(ChromeCanvas* canvas); | 50 virtual void Paint(gfx::Canvas* canvas); |
| 51 virtual void Layout(); | 51 virtual void Layout(); |
| 52 virtual bool HitTest(const gfx::Point& l) const; | 52 virtual bool HitTest(const gfx::Point& l) const; |
| 53 virtual void ViewHierarchyChanged(bool is_add, | 53 virtual void ViewHierarchyChanged(bool is_add, |
| 54 views::View* parent, | 54 views::View* parent, |
| 55 views::View* child); | 55 views::View* child); |
| 56 virtual bool GetAccessibleRole(AccessibilityTypes::Role* role); | 56 virtual bool GetAccessibleRole(AccessibilityTypes::Role* role); |
| 57 virtual bool GetAccessibleName(std::wstring* name); | 57 virtual bool GetAccessibleName(std::wstring* name); |
| 58 virtual void SetAccessibleName(const std::wstring& name); | 58 virtual void SetAccessibleName(const std::wstring& name); |
| 59 | 59 |
| 60 // Overridden from views::ButtonListener: | 60 // Overridden from views::ButtonListener: |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 | 94 |
| 95 // Calculates multiple values related to icon layout. Returns the size of the | 95 // Calculates multiple values related to icon layout. Returns the size of the |
| 96 // icon (along one edge). | 96 // icon (along one edge). |
| 97 int IconSize(int* title_top_spacing_ptr, | 97 int IconSize(int* title_top_spacing_ptr, |
| 98 int* title_thickness_ptr, | 98 int* title_thickness_ptr, |
| 99 int* available_height_ptr) const; | 99 int* available_height_ptr) const; |
| 100 | 100 |
| 101 // Paint various sub-components of this view. The *FrameBorder() functions | 101 // Paint various sub-components of this view. The *FrameBorder() functions |
| 102 // also paint the background of the titlebar area, since the top frame border | 102 // also paint the background of the titlebar area, since the top frame border |
| 103 // and titlebar background are a contiguous component. | 103 // and titlebar background are a contiguous component. |
| 104 void PaintRestoredFrameBorder(ChromeCanvas* canvas); | 104 void PaintRestoredFrameBorder(gfx::Canvas* canvas); |
| 105 void PaintMaximizedFrameBorder(ChromeCanvas* canvas); | 105 void PaintMaximizedFrameBorder(gfx::Canvas* canvas); |
| 106 void PaintDistributorLogo(ChromeCanvas* canvas); | 106 void PaintDistributorLogo(gfx::Canvas* canvas); |
| 107 void PaintTitleBar(ChromeCanvas* canvas); | 107 void PaintTitleBar(gfx::Canvas* canvas); |
| 108 void PaintToolbarBackground(ChromeCanvas* canvas); | 108 void PaintToolbarBackground(gfx::Canvas* canvas); |
| 109 void PaintOTRAvatar(ChromeCanvas* canvas); | 109 void PaintOTRAvatar(gfx::Canvas* canvas); |
| 110 void PaintRestoredClientEdge(ChromeCanvas* canvas); | 110 void PaintRestoredClientEdge(gfx::Canvas* canvas); |
| 111 | 111 |
| 112 // Layout various sub-components of this view. | 112 // Layout various sub-components of this view. |
| 113 void LayoutWindowControls(); | 113 void LayoutWindowControls(); |
| 114 void LayoutDistributorLogo(); | 114 void LayoutDistributorLogo(); |
| 115 void LayoutTitleBar(); | 115 void LayoutTitleBar(); |
| 116 void LayoutOTRAvatar(); | 116 void LayoutOTRAvatar(); |
| 117 void LayoutClientView(); | 117 void LayoutClientView(); |
| 118 | 118 |
| 119 // Returns the bounds of the client area for the specified view size. | 119 // Returns the bounds of the client area for the specified view size. |
| 120 gfx::Rect CalculateClientAreaBounds(int width, int height) const; | 120 gfx::Rect CalculateClientAreaBounds(int width, int height) const; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 151 | 151 |
| 152 static void InitClass(); | 152 static void InitClass(); |
| 153 static void InitAppWindowResources(); | 153 static void InitAppWindowResources(); |
| 154 static SkBitmap* distributor_logo_; | 154 static SkBitmap* distributor_logo_; |
| 155 static gfx::Font* title_font_; | 155 static gfx::Font* title_font_; |
| 156 | 156 |
| 157 DISALLOW_EVIL_CONSTRUCTORS(OpaqueBrowserFrameView); | 157 DISALLOW_EVIL_CONSTRUCTORS(OpaqueBrowserFrameView); |
| 158 }; | 158 }; |
| 159 | 159 |
| 160 #endif // #ifndef CHROME_BROWSER_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ | 160 #endif // #ifndef CHROME_BROWSER_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ |
| OLD | NEW |