| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 int count) OVERRIDE; | 134 int count) OVERRIDE; |
| 135 virtual void TreeNodesRemoved(ui::TreeModel* model, | 135 virtual void TreeNodesRemoved(ui::TreeModel* model, |
| 136 ui::TreeModelNode* parent, | 136 ui::TreeModelNode* parent, |
| 137 int start, | 137 int start, |
| 138 int count) OVERRIDE; | 138 int count) OVERRIDE; |
| 139 virtual void TreeNodeChanged(ui::TreeModel* model, | 139 virtual void TreeNodeChanged(ui::TreeModel* model, |
| 140 ui::TreeModelNode* model_node) OVERRIDE; | 140 ui::TreeModelNode* model_node) OVERRIDE; |
| 141 | 141 |
| 142 // TextfieldController overrides: | 142 // TextfieldController overrides: |
| 143 virtual void ContentsChanged(Textfield* sender, | 143 virtual void ContentsChanged(Textfield* sender, |
| 144 const string16& new_contents) OVERRIDE; | 144 const base::string16& new_contents) OVERRIDE; |
| 145 virtual bool HandleKeyEvent(Textfield* sender, | 145 virtual bool HandleKeyEvent(Textfield* sender, |
| 146 const ui::KeyEvent& key_event) OVERRIDE; | 146 const ui::KeyEvent& key_event) OVERRIDE; |
| 147 | 147 |
| 148 // FocusChangeListener overrides: | 148 // FocusChangeListener overrides: |
| 149 virtual void OnWillChangeFocus(View* focused_before, | 149 virtual void OnWillChangeFocus(View* focused_before, |
| 150 View* focused_now) OVERRIDE; | 150 View* focused_now) OVERRIDE; |
| 151 virtual void OnDidChangeFocus(View* focused_before, | 151 virtual void OnDidChangeFocus(View* focused_before, |
| 152 View* focused_now) OVERRIDE; | 152 View* focused_now) OVERRIDE; |
| 153 | 153 |
| 154 // PrefixDelegate overrides: | 154 // PrefixDelegate overrides: |
| 155 virtual int GetRowCount() OVERRIDE; | 155 virtual int GetRowCount() OVERRIDE; |
| 156 virtual int GetSelectedRow() OVERRIDE; | 156 virtual int GetSelectedRow() OVERRIDE; |
| 157 virtual void SetSelectedRow(int row) OVERRIDE; | 157 virtual void SetSelectedRow(int row) OVERRIDE; |
| 158 virtual string16 GetTextForRow(int row) OVERRIDE; | 158 virtual base::string16 GetTextForRow(int row) OVERRIDE; |
| 159 | 159 |
| 160 protected: | 160 protected: |
| 161 // View overrides: | 161 // View overrides: |
| 162 virtual gfx::Point GetKeyboardContextMenuLocation() OVERRIDE; | 162 virtual gfx::Point GetKeyboardContextMenuLocation() OVERRIDE; |
| 163 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; | 163 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; |
| 164 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 164 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
| 165 virtual void OnFocus() OVERRIDE; | 165 virtual void OnFocus() OVERRIDE; |
| 166 virtual void OnBlur() OVERRIDE; | 166 virtual void OnBlur() OVERRIDE; |
| 167 | 167 |
| 168 private: | 168 private: |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 int text_offset_; | 387 int text_offset_; |
| 388 | 388 |
| 389 scoped_ptr<PrefixSelector> selector_; | 389 scoped_ptr<PrefixSelector> selector_; |
| 390 | 390 |
| 391 DISALLOW_COPY_AND_ASSIGN(TreeView); | 391 DISALLOW_COPY_AND_ASSIGN(TreeView); |
| 392 }; | 392 }; |
| 393 | 393 |
| 394 } // namespace views | 394 } // namespace views |
| 395 | 395 |
| 396 #endif // UI_VIEWS_CONTROLS_TREE_TREE_VIEW_VIEWS_H_ | 396 #endif // UI_VIEWS_CONTROLS_TREE_TREE_VIEW_VIEWS_H_ |
| OLD | NEW |