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

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

Issue 1759453002: Convert location bar bubble delegates to bubble dialog delegates (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix compile errs Created 4 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
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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 981 matching lines...) Expand 10 before | Expand all | Expand 10 after
992 // to scroll. ScrollView interprets a return value of 0 (or negative) 992 // to scroll. ScrollView interprets a return value of 0 (or negative)
993 // to scroll by a default amount. 993 // to scroll by a default amount.
994 // 994 //
995 // See VariableRowHeightScrollHelper and FixedRowHeightScrollHelper for 995 // See VariableRowHeightScrollHelper and FixedRowHeightScrollHelper for
996 // implementations of common cases. 996 // implementations of common cases.
997 virtual int GetPageScrollIncrement(ScrollView* scroll_view, 997 virtual int GetPageScrollIncrement(ScrollView* scroll_view,
998 bool is_horizontal, bool is_positive); 998 bool is_horizontal, bool is_positive);
999 virtual int GetLineScrollIncrement(ScrollView* scroll_view, 999 virtual int GetLineScrollIncrement(ScrollView* scroll_view,
1000 bool is_horizontal, bool is_positive); 1000 bool is_horizontal, bool is_positive);
1001 1001
1002 // Accelerators --------------------------------------------------------------
1003
1004 // Returns true if this view has registered to handle this accelerator.
1005 bool HandlesAccelerator(const ui::Accelerator& accelerator);
msw 2016/03/03 23:01:40 nit: group with others on line 736 if needed (reor
Evan Stade 2016/03/07 18:36:38 Done.
1006
1002 protected: 1007 protected:
1003 // Used to track a drag. RootView passes this into 1008 // Used to track a drag. RootView passes this into
1004 // ProcessMousePressed/Dragged. 1009 // ProcessMousePressed/Dragged.
1005 struct DragInfo { 1010 struct DragInfo {
1006 // Sets possible_drag to false and start_x/y to 0. This is invoked by 1011 // Sets possible_drag to false and start_x/y to 0. This is invoked by
1007 // RootView prior to invoke ProcessMousePressed. 1012 // RootView prior to invoke ProcessMousePressed.
1008 void Reset(); 1013 void Reset();
1009 1014
1010 // Sets possible_drag to true and start_pt to the specified point. 1015 // Sets possible_drag to true and start_pt to the specified point.
1011 // This is invoked by the target view if it detects the press may generate 1016 // This is invoked by the target view if it detects the press may generate
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
1575 // Belongs to this view, but it's reference-counted on some platforms 1580 // Belongs to this view, but it's reference-counted on some platforms
1576 // so we can't use a scoped_ptr. It's dereferenced in the destructor. 1581 // so we can't use a scoped_ptr. It's dereferenced in the destructor.
1577 NativeViewAccessibility* native_view_accessibility_; 1582 NativeViewAccessibility* native_view_accessibility_;
1578 1583
1579 DISALLOW_COPY_AND_ASSIGN(View); 1584 DISALLOW_COPY_AND_ASSIGN(View);
1580 }; 1585 };
1581 1586
1582 } // namespace views 1587 } // namespace views
1583 1588
1584 #endif // UI_VIEWS_VIEW_H_ 1589 #endif // UI_VIEWS_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698