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

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

Issue 1177503003: Remove the 2-level input method system & InputMethodBridge. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased & removed views::View::GetTextInputClient & removed GetFocusedTextInputClient. Created 5 years, 6 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
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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 } 112 }
113 113
114 // Returns the node for the specified row, or NULL for an invalid row index. 114 // Returns the node for the specified row, or NULL for an invalid row index.
115 ui::TreeModelNode* GetNodeForRow(int row); 115 ui::TreeModelNode* GetNodeForRow(int row);
116 116
117 // Maps a node to a row, returns -1 if node is not valid. 117 // Maps a node to a row, returns -1 if node is not valid.
118 int GetRowForNode(ui::TreeModelNode* node); 118 int GetRowForNode(ui::TreeModelNode* node);
119 119
120 views::Textfield* editor() { return editor_; } 120 views::Textfield* editor() { return editor_; }
121 121
122 ui::TextInputClient* GetTextInputClient();
123
122 // View overrides: 124 // View overrides:
123 void Layout() override; 125 void Layout() override;
124 gfx::Size GetPreferredSize() const override; 126 gfx::Size GetPreferredSize() const override;
125 bool AcceleratorPressed(const ui::Accelerator& accelerator) override; 127 bool AcceleratorPressed(const ui::Accelerator& accelerator) override;
126 bool OnMousePressed(const ui::MouseEvent& event) override; 128 bool OnMousePressed(const ui::MouseEvent& event) override;
127 ui::TextInputClient* GetTextInputClient() override;
128 void OnGestureEvent(ui::GestureEvent* event) override; 129 void OnGestureEvent(ui::GestureEvent* event) override;
129 void ShowContextMenu(const gfx::Point& p, 130 void ShowContextMenu(const gfx::Point& p,
130 ui::MenuSourceType source_type) override; 131 ui::MenuSourceType source_type) override;
131 void GetAccessibleState(ui::AXViewState* state) override; 132 void GetAccessibleState(ui::AXViewState* state) override;
132 const char* GetClassName() const override; 133 const char* GetClassName() const override;
133 134
134 // TreeModelObserver overrides: 135 // TreeModelObserver overrides:
135 void TreeNodesAdded(ui::TreeModel* model, 136 void TreeNodesAdded(ui::TreeModel* model,
136 ui::TreeModelNode* parent, 137 ui::TreeModelNode* parent,
137 int start, 138 int start,
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 int text_offset_; 387 int text_offset_;
387 388
388 scoped_ptr<PrefixSelector> selector_; 389 scoped_ptr<PrefixSelector> selector_;
389 390
390 DISALLOW_COPY_AND_ASSIGN(TreeView); 391 DISALLOW_COPY_AND_ASSIGN(TreeView);
391 }; 392 };
392 393
393 } // namespace views 394 } // namespace views
394 395
395 #endif // UI_VIEWS_CONTROLS_TREE_TREE_VIEW_VIEWS_H_ 396 #endif // UI_VIEWS_CONTROLS_TREE_TREE_VIEW_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698