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

Side by Side Diff: ui/views/controls/tree/tree_view_views.h

Issue 10825254: Remove views::KeyEvent, replacing uses of it with ui::KeyEvent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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
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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 ui::TreeModelNode* parent, 121 ui::TreeModelNode* parent,
122 int start, 122 int start,
123 int count) OVERRIDE; 123 int count) OVERRIDE;
124 virtual void TreeNodeChanged(ui::TreeModel* model, 124 virtual void TreeNodeChanged(ui::TreeModel* model,
125 ui::TreeModelNode* model_node) OVERRIDE; 125 ui::TreeModelNode* model_node) OVERRIDE;
126 126
127 // TextfieldController overrides: 127 // TextfieldController overrides:
128 virtual void ContentsChanged(Textfield* sender, 128 virtual void ContentsChanged(Textfield* sender,
129 const string16& new_contents) OVERRIDE; 129 const string16& new_contents) OVERRIDE;
130 virtual bool HandleKeyEvent(Textfield* sender, 130 virtual bool HandleKeyEvent(Textfield* sender,
131 const KeyEvent& key_event) OVERRIDE; 131 const ui::KeyEvent& key_event) OVERRIDE;
132 132
133 // FocusChangeListener overrides: 133 // FocusChangeListener overrides:
134 virtual void OnWillChangeFocus(View* focused_before, 134 virtual void OnWillChangeFocus(View* focused_before,
135 View* focused_now) OVERRIDE; 135 View* focused_now) OVERRIDE;
136 virtual void OnDidChangeFocus(View* focused_before, 136 virtual void OnDidChangeFocus(View* focused_before,
137 View* focused_now) OVERRIDE; 137 View* focused_now) OVERRIDE;
138 138
139 protected: 139 protected:
140 // View overrides: 140 // View overrides:
141 virtual gfx::Point GetKeyboardContextMenuLocation() OVERRIDE; 141 virtual gfx::Point GetKeyboardContextMenuLocation() OVERRIDE;
142 virtual bool OnKeyPressed(const KeyEvent& event) OVERRIDE; 142 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE;
143 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 143 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
144 virtual void OnFocus() OVERRIDE; 144 virtual void OnFocus() OVERRIDE;
145 virtual void OnBlur() OVERRIDE; 145 virtual void OnBlur() OVERRIDE;
146 146
147 private: 147 private:
148 friend class TreeViewViewsTest; 148 friend class TreeViewViewsTest;
149 149
150 // InternalNode is used to track information about the set of nodes displayed 150 // InternalNode is used to track information about the set of nodes displayed
151 // by TreeViewViews. 151 // by TreeViewViews.
152 class InternalNode : public ui::TreeNode<InternalNode> { 152 class InternalNode : public ui::TreeNode<InternalNode> {
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 // Offset the text is drawn at. This accounts for the size of the expand 359 // Offset the text is drawn at. This accounts for the size of the expand
360 // control, icon and offsets. 360 // control, icon and offsets.
361 int text_offset_; 361 int text_offset_;
362 362
363 DISALLOW_COPY_AND_ASSIGN(TreeView); 363 DISALLOW_COPY_AND_ASSIGN(TreeView);
364 }; 364 };
365 365
366 } // namespace views 366 } // namespace views
367 367
368 #endif // UI_VIEWS_CONTROLS_TREE_TREE_VIEW_VIEWS_H_ 368 #endif // UI_VIEWS_CONTROLS_TREE_TREE_VIEW_VIEWS_H_
OLDNEW
« no previous file with comments | « ui/views/controls/textfield/textfield_controller.h ('k') | ui/views/controls/tree/tree_view_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698