Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: chrome/browser/ui/views/panels/panel_stack_view.h

Issue 11669018: Support dragging panels to stack and snap. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change per feedback Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_VIEWS_PANELS_PANEL_STACK_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_PANELS_PANEL_STACK_VIEW_H_
7
8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/ui/panels/native_panel_stack.h"
11 #include "ui/views/widget/widget_delegate.h"
12 #include "ui/views/widget/widget_observer.h"
13
14 class StackedPanelCollection;
15
16 class PanelStackView : public NativePanelStack,
Dmitry Titov 2013/01/09 02:29:50 Class comment.
jianli 2013/01/09 21:00:59 Done.
17 public views::WidgetObserver,
18 public views::WidgetDelegateView {
19 public:
20 explicit PanelStackView(StackedPanelCollection* stack);
21 ~PanelStackView();
22
23 protected:
24 // Overridden from NativePanelStack:
25 virtual void Close() OVERRIDE;
26 virtual void OnPanelAddedOrRemoved() OVERRIDE;
27 virtual gfx::NativeWindow GetNativeWindow() const OVERRIDE;
28 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE;
29
30 private:
31 // Overridden from views::WidgetDelegate:
32 virtual string16 GetWindowTitle() const OVERRIDE;
33 virtual gfx::ImageSkia GetWindowAppIcon() OVERRIDE;
34 virtual gfx::ImageSkia GetWindowIcon() OVERRIDE;
35 virtual views::Widget* GetWidget() OVERRIDE;
36 virtual const views::Widget* GetWidget() const OVERRIDE;
37
38 // Overridden from views::WidgetObserver:
39 virtual void OnWidgetClosing(views::Widget* widget) OVERRIDE;
40
41 scoped_ptr<StackedPanelCollection> stack_;
Dmitry Titov 2013/01/09 02:29:50 naming: stack_collection_ is better, although a bi
jianli 2013/01/09 21:00:59 Done.
42
43 bool delay_initialized_;
44
45 views::Widget* window_;
46
47 DISALLOW_COPY_AND_ASSIGN(PanelStackView);
48 };
49
50 #endif // CHROME_BROWSER_UI_VIEWS_PANELS_PANEL_STACK_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698