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_PANELS_PANEL_BROWSER_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ |
6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ | 6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 virtual gfx::Size WindowSizeFromContentSize( | 114 virtual gfx::Size WindowSizeFromContentSize( |
115 const gfx::Size& content_size) const OVERRIDE; | 115 const gfx::Size& content_size) const OVERRIDE; |
116 virtual gfx::Size ContentSizeFromWindowSize( | 116 virtual gfx::Size ContentSizeFromWindowSize( |
117 const gfx::Size& window_size) const OVERRIDE; | 117 const gfx::Size& window_size) const OVERRIDE; |
118 virtual int TitleOnlyHeight() const OVERRIDE; | 118 virtual int TitleOnlyHeight() const OVERRIDE; |
119 virtual Browser* GetPanelBrowser() const OVERRIDE; | 119 virtual Browser* GetPanelBrowser() const OVERRIDE; |
120 virtual void DestroyPanelBrowser() OVERRIDE; | 120 virtual void DestroyPanelBrowser() OVERRIDE; |
121 virtual gfx::Size IconOnlySize() const OVERRIDE; | 121 virtual gfx::Size IconOnlySize() const OVERRIDE; |
122 virtual void EnsurePanelFullyVisible() OVERRIDE; | 122 virtual void EnsurePanelFullyVisible() OVERRIDE; |
123 virtual void SetPanelAppIconVisibility(bool visible) OVERRIDE; | 123 virtual void SetPanelAppIconVisibility(bool visible) OVERRIDE; |
| 124 virtual void SetPanelAlwaysOnTop(bool on_top) OVERRIDE; |
124 | 125 |
125 // Overridden from AnimationDelegate: | 126 // Overridden from AnimationDelegate: |
126 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE; | 127 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE; |
127 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; | 128 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; |
128 | 129 |
129 bool EndDragging(bool cancelled); | 130 bool EndDragging(bool cancelled); |
130 | 131 |
131 void SetBoundsInternal(const gfx::Rect& bounds, bool animate); | 132 void SetBoundsInternal(const gfx::Rect& bounds, bool animate); |
132 | 133 |
133 void ShowOrHidePanelAppIcon(bool show); | 134 void ShowOrHidePanelAppIcon(bool show); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 // The last view that had focus in the panel. This is saved so that focus can | 170 // The last view that had focus in the panel. This is saved so that focus can |
170 // be restored properly when a drag ends. | 171 // be restored properly when a drag ends. |
171 views::View* old_focused_view_; | 172 views::View* old_focused_view_; |
172 | 173 |
173 content::NotificationRegistrar registrar_; | 174 content::NotificationRegistrar registrar_; |
174 | 175 |
175 DISALLOW_COPY_AND_ASSIGN(PanelBrowserView); | 176 DISALLOW_COPY_AND_ASSIGN(PanelBrowserView); |
176 }; | 177 }; |
177 | 178 |
178 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ | 179 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ |
OLD | NEW |