| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_APP_PANEL_BROWSER_FRAME_VIEW_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_FRAME_APP_PANEL_BROWSER_FRAME_VIEW_H_ |
| 6 #define CHROME_BROWSER_VIEWS_FRAME_APP_PANEL_BROWSER_FRAME_VIEW_H_ | 6 #define CHROME_BROWSER_VIEWS_FRAME_APP_PANEL_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/frame/browser_non_client_frame_view.h" | 9 #include "chrome/browser/views/frame/browser_non_client_frame_view.h" |
| 10 #include "chrome/browser/views/tab_icon_view.h" | 10 #include "chrome/browser/views/tab_icon_view.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 class AppPanelBrowserFrameView : public BrowserNonClientFrameView, | 27 class AppPanelBrowserFrameView : public BrowserNonClientFrameView, |
| 28 public views::ButtonListener, | 28 public views::ButtonListener, |
| 29 public TabIconView::TabIconViewModel { | 29 public TabIconView::TabIconViewModel { |
| 30 public: | 30 public: |
| 31 // Constructs a non-client view for an BrowserFrame. | 31 // Constructs a non-client view for an BrowserFrame. |
| 32 AppPanelBrowserFrameView(BrowserFrame* frame, BrowserView* browser_view); | 32 AppPanelBrowserFrameView(BrowserFrame* frame, BrowserView* browser_view); |
| 33 virtual ~AppPanelBrowserFrameView(); | 33 virtual ~AppPanelBrowserFrameView(); |
| 34 | 34 |
| 35 // Overridden from BrowserNonClientFrameView: | 35 // Overridden from BrowserNonClientFrameView: |
| 36 virtual gfx::Rect GetBoundsForTabStrip(BaseTabStrip* tabstrip) const; | 36 virtual gfx::Rect GetBoundsForTabStrip(BaseTabStrip* tabstrip) const; |
| 37 virtual int GetHorizontalTabStripVerticalOffset(bool restored) const; |
| 37 virtual void UpdateThrobber(bool running); | 38 virtual void UpdateThrobber(bool running); |
| 38 virtual gfx::Size GetMinimumSize(); | 39 virtual gfx::Size GetMinimumSize(); |
| 39 | 40 |
| 40 protected: | 41 protected: |
| 41 // Overridden from views::NonClientFrameView: | 42 // Overridden from views::NonClientFrameView: |
| 42 virtual gfx::Rect GetBoundsForClientView() const; | 43 virtual gfx::Rect GetBoundsForClientView() const; |
| 43 virtual bool AlwaysUseCustomFrame() const; | 44 virtual bool AlwaysUseCustomFrame() const; |
| 44 virtual bool AlwaysUseNativeFrame() const; | 45 virtual bool AlwaysUseNativeFrame() const; |
| 45 virtual gfx::Rect GetWindowBoundsForClientBounds( | 46 virtual gfx::Rect GetWindowBoundsForClientBounds( |
| 46 const gfx::Rect& client_bounds) const; | 47 const gfx::Rect& client_bounds) const; |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 // The accessible name of this view. | 120 // The accessible name of this view. |
| 120 std::wstring accessible_name_; | 121 std::wstring accessible_name_; |
| 121 | 122 |
| 122 static void InitAppWindowResources(); | 123 static void InitAppWindowResources(); |
| 123 static gfx::Font* title_font_; | 124 static gfx::Font* title_font_; |
| 124 | 125 |
| 125 DISALLOW_COPY_AND_ASSIGN(AppPanelBrowserFrameView); | 126 DISALLOW_COPY_AND_ASSIGN(AppPanelBrowserFrameView); |
| 126 }; | 127 }; |
| 127 | 128 |
| 128 #endif // CHROME_BROWSER_VIEWS_FRAME_APP_PANEL_BROWSER_FRAME_VIEW_H_ | 129 #endif // CHROME_BROWSER_VIEWS_FRAME_APP_PANEL_BROWSER_FRAME_VIEW_H_ |
| OLD | NEW |