Chromium Code Reviews| Index: ui/oak/oak_window.h |
| =================================================================== |
| --- ui/oak/oak_window.h (revision 0) |
| +++ ui/oak/oak_window.h (revision 0) |
| @@ -0,0 +1,62 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef UI_OAK_OAK_WINDOW_H_ |
| +#define UI_OAK_OAK_WINDOW_H_ |
| +#pragma once |
| + |
| +#include "ui/oak/oak_tree_model.h" |
| +#include "ui/views/controls/tree/tree_view_controller.h" |
| +#include "ui/views/widget/widget_delegate.h" |
| + |
| +namespace oak { |
| +namespace internal { |
| + |
| +class OakTreeModel; |
| + |
| +class OakWindow : public views::WidgetDelegateView, |
| + public views::TreeViewController { |
| + public: |
| + OakWindow(); |
| + virtual ~OakWindow(); |
| + |
| + static views::Widget* instance_; |
|
tfarina
2012/03/10 14:42:46
nit: hum |instance_|? May be |instance|? Or move i
|
| + |
| + // Overridden from views::WidgetDelegateView: |
| + virtual bool CanResize() const OVERRIDE; |
| + virtual bool CanMaximize() const OVERRIDE; |
| + virtual string16 GetWindowTitle() const OVERRIDE; |
| + virtual views::View* GetContentsView() OVERRIDE; |
| + virtual SkBitmap GetWindowIcon() OVERRIDE; |
| + virtual bool ShouldShowWindowIcon() const OVERRIDE; |
| + virtual void DeleteDelegate() OVERRIDE; |
| + |
| + private: |
| + // Overridden from views::View: |
| + virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
| + virtual void ViewHierarchyChanged(bool is_add, |
| + views::View* parent, |
| + views::View* child) OVERRIDE; |
| + virtual void Layout() OVERRIDE; |
| + |
| + // Overridden from views::TreeViewController: |
| + virtual void OnTreeViewSelectionChanged(views::TreeView* tree) OVERRIDE; |
| + |
| + void Init(); |
| + |
| + scoped_ptr<views::TreeView> tree_; |
| + scoped_ptr<TreeOfWindows> tree_model_; |
| + views::View* tree_container_; |
| + |
| + gfx::Rect separator_rect_; |
| + |
| + views::View* details_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(OakWindow); |
| +}; |
| + |
| +} // namespace internal |
| +} // namespace oak |
| + |
| +#endif // UI_OAK_OAK_WINDOW_H_ |
| Property changes on: ui\oak\oak_window.h |
| ___________________________________________________________________ |
| Added: svn:eol-style |
| + LF |