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

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

Issue 2411693002: views: add focus ring to TreeView (Closed)
Patch Set: make this Mac-specific Created 4 years, 2 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
« no previous file with comments | « no previous file | ui/views/controls/tree/tree_view.cc » ('j') | ui/views/controls/tree/tree_view.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 // Implementation of Expand(). Returns true if at least one node was expanded 342 // Implementation of Expand(). Returns true if at least one node was expanded
343 // that previously wasn't. 343 // that previously wasn't.
344 bool ExpandImpl(ui::TreeModelNode* model_node); 344 bool ExpandImpl(ui::TreeModelNode* model_node);
345 345
346 PrefixSelector* GetPrefixSelector(); 346 PrefixSelector* GetPrefixSelector();
347 347
348 // Returns whether |point| is in the bounds of |node|'s expand/collapse 348 // Returns whether |point| is in the bounds of |node|'s expand/collapse
349 // control. 349 // control.
350 bool IsPointInExpandControl(InternalNode* node, const gfx::Point& point); 350 bool IsPointInExpandControl(InternalNode* node, const gfx::Point& point);
351 351
352 // Returns the View that the focus ring for this TreeView should be drawn
353 // around.
354 View* FindFocusRingView();
355
352 // The model, may be null. 356 // The model, may be null.
353 ui::TreeModel* model_; 357 ui::TreeModel* model_;
354 358
355 // Default icons for closed/open. 359 // Default icons for closed/open.
356 gfx::ImageSkia closed_icon_; 360 gfx::ImageSkia closed_icon_;
357 gfx::ImageSkia open_icon_; 361 gfx::ImageSkia open_icon_;
358 362
359 // Icons from the model. 363 // Icons from the model.
360 std::vector<gfx::ImageSkia> icons_; 364 std::vector<gfx::ImageSkia> icons_;
361 365
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 int text_offset_; 409 int text_offset_;
406 410
407 std::unique_ptr<PrefixSelector> selector_; 411 std::unique_ptr<PrefixSelector> selector_;
408 412
409 DISALLOW_COPY_AND_ASSIGN(TreeView); 413 DISALLOW_COPY_AND_ASSIGN(TreeView);
410 }; 414 };
411 415
412 } // namespace views 416 } // namespace views
413 417
414 #endif // UI_VIEWS_CONTROLS_TREE_TREE_VIEW_VIEWS_H_ 418 #endif // UI_VIEWS_CONTROLS_TREE_TREE_VIEW_VIEWS_H_
OLDNEW
« no previous file with comments | « no previous file | ui/views/controls/tree/tree_view.cc » ('j') | ui/views/controls/tree/tree_view.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698