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

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

Issue 2715813002: Change focus indicator for TableView and TreeView. (Closed)
Patch Set: rename Created 3 years, 9 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 | « ui/views/controls/table/table_view.cc ('k') | ui/views/controls/tree/tree_view.cc » ('j') | no next file with comments »
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 // Sets whether a focus ring is visible on this control or not. This function 352 // Sets whether a focus indicator is visible on this control or not.
353 // does nothing if focus rings aren't enabled in general or if the platform's 353 void SetHasFocusIndicator(bool);
354 // style does not use focus rings on TreeViews.
355 void SetHasFocusRing(bool);
356 354
357 // The model, may be null. 355 // The model, may be null.
358 ui::TreeModel* model_; 356 ui::TreeModel* model_;
359 357
360 // Default icons for closed/open. 358 // Default icons for closed/open.
361 gfx::ImageSkia closed_icon_; 359 gfx::ImageSkia closed_icon_;
362 gfx::ImageSkia open_icon_; 360 gfx::ImageSkia open_icon_;
363 361
364 // Icons from the model. 362 // Icons from the model.
365 std::vector<gfx::ImageSkia> icons_; 363 std::vector<gfx::ImageSkia> icons_;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 int text_offset_; 408 int text_offset_;
411 409
412 std::unique_ptr<PrefixSelector> selector_; 410 std::unique_ptr<PrefixSelector> selector_;
413 411
414 DISALLOW_COPY_AND_ASSIGN(TreeView); 412 DISALLOW_COPY_AND_ASSIGN(TreeView);
415 }; 413 };
416 414
417 } // namespace views 415 } // namespace views
418 416
419 #endif // UI_VIEWS_CONTROLS_TREE_TREE_VIEW_VIEWS_H_ 417 #endif // UI_VIEWS_CONTROLS_TREE_TREE_VIEW_VIEWS_H_
OLDNEW
« no previous file with comments | « ui/views/controls/table/table_view.cc ('k') | ui/views/controls/tree/tree_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698