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 UI_VIEWS_CONTROLS_TREE_TREE_VIEW_VIEWS_H_ | 5 #ifndef UI_VIEWS_CONTROLS_TREE_TREE_VIEW_VIEWS_H_ |
6 #define UI_VIEWS_CONTROLS_TREE_TREE_VIEW_VIEWS_H_ | 6 #define UI_VIEWS_CONTROLS_TREE_TREE_VIEW_VIEWS_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 views::Textfield* editor() { return editor_; } | 115 views::Textfield* editor() { return editor_; } |
116 | 116 |
117 // View overrides: | 117 // View overrides: |
118 virtual void Layout() OVERRIDE; | 118 virtual void Layout() OVERRIDE; |
119 virtual gfx::Size GetPreferredSize() OVERRIDE; | 119 virtual gfx::Size GetPreferredSize() OVERRIDE; |
120 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; | 120 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; |
121 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; | 121 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; |
122 virtual ui::TextInputClient* GetTextInputClient() OVERRIDE; | 122 virtual ui::TextInputClient* GetTextInputClient() OVERRIDE; |
123 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; | 123 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; |
124 virtual void ShowContextMenu(const gfx::Point& p, | 124 virtual void ShowContextMenu(const gfx::Point& p, |
125 bool is_mouse_gesture) OVERRIDE; | 125 ui::MenuSourceType source_type) OVERRIDE; |
126 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 126 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
127 | 127 |
128 // TreeModelObserver overrides: | 128 // TreeModelObserver overrides: |
129 virtual void TreeNodesAdded(ui::TreeModel* model, | 129 virtual void TreeNodesAdded(ui::TreeModel* model, |
130 ui::TreeModelNode* parent, | 130 ui::TreeModelNode* parent, |
131 int start, | 131 int start, |
132 int count) OVERRIDE; | 132 int count) OVERRIDE; |
133 virtual void TreeNodesRemoved(ui::TreeModel* model, | 133 virtual void TreeNodesRemoved(ui::TreeModel* model, |
134 ui::TreeModelNode* parent, | 134 ui::TreeModelNode* parent, |
135 int start, | 135 int start, |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 int text_offset_; | 379 int text_offset_; |
380 | 380 |
381 scoped_ptr<TreeViewSelector> selector_; | 381 scoped_ptr<TreeViewSelector> selector_; |
382 | 382 |
383 DISALLOW_COPY_AND_ASSIGN(TreeView); | 383 DISALLOW_COPY_AND_ASSIGN(TreeView); |
384 }; | 384 }; |
385 | 385 |
386 } // namespace views | 386 } // namespace views |
387 | 387 |
388 #endif // UI_VIEWS_CONTROLS_TREE_TREE_VIEW_VIEWS_H_ | 388 #endif // UI_VIEWS_CONTROLS_TREE_TREE_VIEW_VIEWS_H_ |
OLD | NEW |