Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_STACK_H_ | |
| 6 #define CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_STACK_H_ | |
| 7 | |
| 8 #include "ui/gfx/native_widget_types.h" | |
| 9 | |
| 10 class StackedPanelCollection; | |
| 11 namespace gfx { | |
| 12 class Rect; | |
| 13 } | |
| 14 | |
| 15 class NativePanelStack { | |
|
Dmitry Titov
2013/01/09 02:29:50
This needs a class comment. What this class is for
jianli
2013/01/09 21:00:59
Done.
| |
| 16 friend class StackedPanelCollection; | |
| 17 | |
| 18 public: | |
| 19 static NativePanelStack* Create(StackedPanelCollection* stack); | |
| 20 virtual ~NativePanelStack() {} | |
| 21 | |
| 22 protected: | |
| 23 virtual void Close() = 0; | |
| 24 virtual void OnPanelAddedOrRemoved() = 0; | |
| 25 virtual gfx::NativeWindow GetNativeWindow() const = 0; | |
| 26 virtual void SetBounds(const gfx::Rect& bounds) = 0; | |
| 27 }; | |
| 28 | |
| 29 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_STACK_H_ | |
| OLD | NEW |