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

Side by Side Diff: ui/views/view.h

Issue 13976011: Revert FindBarView::SearchTextfieldView deletion. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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_VIEW_H_ 5 #ifndef UI_VIEWS_VIEW_H_
6 #define UI_VIEWS_VIEW_H_ 6 #define UI_VIEWS_VIEW_H_
7 7
8 #include <algorithm> 8 #include <algorithm>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
719 accessibility_focusable_ = accessibility_focusable; 719 accessibility_focusable_ = accessibility_focusable;
720 } 720 }
721 721
722 // Convenience method to retrieve the FocusManager associated with the 722 // Convenience method to retrieve the FocusManager associated with the
723 // Widget that contains this view. This can return NULL if this view is not 723 // Widget that contains this view. This can return NULL if this view is not
724 // part of a view hierarchy with a Widget. 724 // part of a view hierarchy with a Widget.
725 virtual FocusManager* GetFocusManager(); 725 virtual FocusManager* GetFocusManager();
726 virtual const FocusManager* GetFocusManager() const; 726 virtual const FocusManager* GetFocusManager() const;
727 727
728 // Request keyboard focus. The receiving view will become the focused view. 728 // Request keyboard focus. The receiving view will become the focused view.
729 void RequestFocus(); 729 virtual void RequestFocus();
730 730
731 // Invoked when a view is about to be requested for focus due to the focus 731 // Invoked when a view is about to be requested for focus due to the focus
732 // traversal. Reverse is this request was generated going backward 732 // traversal. Reverse is this request was generated going backward
733 // (Shift-Tab). 733 // (Shift-Tab).
734 virtual void AboutToRequestFocusFromTabTraversal(bool reverse) {} 734 virtual void AboutToRequestFocusFromTabTraversal(bool reverse) {}
735 735
736 // Invoked when a key is pressed before the key event is processed (and 736 // Invoked when a key is pressed before the key event is processed (and
737 // potentially eaten) by the focus manager for tab traversal, accelerators and 737 // potentially eaten) by the focus manager for tab traversal, accelerators and
738 // other focus related actions. 738 // other focus related actions.
739 // The default implementation returns false, ensuring that tab traversal and 739 // The default implementation returns false, ensuring that tab traversal and
(...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after
1498 // Belongs to this view, but it's reference-counted on some platforms 1498 // Belongs to this view, but it's reference-counted on some platforms
1499 // so we can't use a scoped_ptr. It's dereferenced in the destructor. 1499 // so we can't use a scoped_ptr. It's dereferenced in the destructor.
1500 NativeViewAccessibility* native_view_accessibility_; 1500 NativeViewAccessibility* native_view_accessibility_;
1501 1501
1502 DISALLOW_COPY_AND_ASSIGN(View); 1502 DISALLOW_COPY_AND_ASSIGN(View);
1503 }; 1503 };
1504 1504
1505 } // namespace views 1505 } // namespace views
1506 1506
1507 #endif // UI_VIEWS_VIEW_H_ 1507 #endif // UI_VIEWS_VIEW_H_
OLDNEW
« chrome/browser/ui/views/find_bar_view.cc ('K') | « chrome/browser/ui/views/find_bar_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698