| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_non_client_frame_view.h" | 9 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h" |
| 10 #include "chrome/browser/ui/views/tab_icon_view.h" | 10 #include "chrome/browser/ui/views/tab_icon_view.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 // Overridden from views::View: | 47 // Overridden from views::View: |
| 48 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 48 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
| 49 virtual void Layout() OVERRIDE; | 49 virtual void Layout() OVERRIDE; |
| 50 | 50 |
| 51 // Overridden from views::ButtonListener: | 51 // Overridden from views::ButtonListener: |
| 52 virtual void ButtonPressed(views::Button* sender, const views::Event& event) | 52 virtual void ButtonPressed(views::Button* sender, const views::Event& event) |
| 53 OVERRIDE; | 53 OVERRIDE; |
| 54 | 54 |
| 55 // Overridden from TabIconView::TabIconViewModel: | 55 // Overridden from TabIconView::TabIconViewModel: |
| 56 virtual bool ShouldTabIconViewAnimate() const OVERRIDE; | 56 virtual bool ShouldTabIconViewAnimate() const OVERRIDE; |
| 57 virtual SkBitmap GetFaviconForTabIconView() OVERRIDE; | 57 virtual gfx::ImageSkia GetFaviconForTabIconView() OVERRIDE; |
| 58 | 58 |
| 59 private: | 59 private: |
| 60 // Returns the thickness of the border that makes up the window frame edges. | 60 // Returns the thickness of the border that makes up the window frame edges. |
| 61 // This does not include any client edge. | 61 // This does not include any client edge. |
| 62 int FrameBorderThickness() const; | 62 int FrameBorderThickness() const; |
| 63 | 63 |
| 64 // Returns the thickness of the entire nonclient left, right, and bottom | 64 // Returns the thickness of the entire nonclient left, right, and bottom |
| 65 // borders, including both the window frame and any client edge. | 65 // borders, including both the window frame and any client edge. |
| 66 int NonClientBorderThickness() const; | 66 int NonClientBorderThickness() const; |
| 67 | 67 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 // The Window icon. | 103 // The Window icon. |
| 104 TabIconView* window_icon_; | 104 TabIconView* window_icon_; |
| 105 | 105 |
| 106 // The bounds of the ClientView. | 106 // The bounds of the ClientView. |
| 107 gfx::Rect client_view_bounds_; | 107 gfx::Rect client_view_bounds_; |
| 108 | 108 |
| 109 DISALLOW_COPY_AND_ASSIGN(AppPanelBrowserFrameView); | 109 DISALLOW_COPY_AND_ASSIGN(AppPanelBrowserFrameView); |
| 110 }; | 110 }; |
| 111 | 111 |
| 112 #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 |