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