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

Side by Side Diff: ui/oak/oak_window.h

Issue 9662022: Basic skeleton of a window/layer/view inspector. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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
Property Changes:
Added: svn:eol-style
+ LF
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 UI_OAK_OAK_WINDOW_H_
6 #define UI_OAK_OAK_WINDOW_H_
7 #pragma once
8
9 #include "ui/oak/oak_tree_model.h"
10 #include "ui/views/controls/tree/tree_view_controller.h"
11 #include "ui/views/widget/widget_delegate.h"
12
13 namespace oak {
14 namespace internal {
15
16 class OakTreeModel;
17
18 class OakWindow : public views::WidgetDelegateView,
19 public views::TreeViewController {
20 public:
21 OakWindow();
22 virtual ~OakWindow();
23
24 static views::Widget* instance_;
tfarina 2012/03/10 14:42:46 nit: hum |instance_|? May be |instance|? Or move i
25
26 // Overridden from views::WidgetDelegateView:
27 virtual bool CanResize() const OVERRIDE;
28 virtual bool CanMaximize() const OVERRIDE;
29 virtual string16 GetWindowTitle() const OVERRIDE;
30 virtual views::View* GetContentsView() OVERRIDE;
31 virtual SkBitmap GetWindowIcon() OVERRIDE;
32 virtual bool ShouldShowWindowIcon() const OVERRIDE;
33 virtual void DeleteDelegate() OVERRIDE;
34
35 private:
36 // Overridden from views::View:
37 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
38 virtual void ViewHierarchyChanged(bool is_add,
39 views::View* parent,
40 views::View* child) OVERRIDE;
41 virtual void Layout() OVERRIDE;
42
43 // Overridden from views::TreeViewController:
44 virtual void OnTreeViewSelectionChanged(views::TreeView* tree) OVERRIDE;
45
46 void Init();
47
48 scoped_ptr<views::TreeView> tree_;
49 scoped_ptr<TreeOfWindows> tree_model_;
50 views::View* tree_container_;
51
52 gfx::Rect separator_rect_;
53
54 views::View* details_;
55
56 DISALLOW_COPY_AND_ASSIGN(OakWindow);
57 };
58
59 } // namespace internal
60 } // namespace oak
61
62 #endif // UI_OAK_OAK_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698