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

Side by Side Diff: views/widget/root_view.h

Issue 2878055: Make theme change notifications auto-propagate through the view hierarchy, in... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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
« no previous file with comments | « views/view.cc ('k') | views/widget/root_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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 VIEWS_WIDGET_ROOT_VIEW_H_ 5 #ifndef VIEWS_WIDGET_ROOT_VIEW_H_
6 #define VIEWS_WIDGET_ROOT_VIEW_H_ 6 #define VIEWS_WIDGET_ROOT_VIEW_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/ref_counted.h" 10 #include "base/ref_counted.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // Returns the region scheduled to paint clipped to the RootViews bounds. 72 // Returns the region scheduled to paint clipped to the RootViews bounds.
73 gfx::Rect GetScheduledPaintRectConstrainedToSize(); 73 gfx::Rect GetScheduledPaintRectConstrainedToSize();
74 74
75 // Tree functions 75 // Tree functions
76 76
77 // Get the Widget that hosts this View. 77 // Get the Widget that hosts this View.
78 virtual Widget* GetWidget() const; 78 virtual Widget* GetWidget() const;
79 79
80 // Public API for broadcasting theme change notifications to this View 80 // Public API for broadcasting theme change notifications to this View
81 // hierarchy. 81 // hierarchy.
82 virtual void ThemeChanged(); 82 void NotifyThemeChanged();
83 83
84 // Public API for broadcasting locale change notifications to this View 84 // Public API for broadcasting locale change notifications to this View
85 // hierarchy. 85 // hierarchy.
86 virtual void NotifyLocaleChanged(); 86 void NotifyLocaleChanged();
87 87
88 // The following event methods are overridden to propagate event to the 88 // The following event methods are overridden to propagate event to the
89 // control tree 89 // control tree
90 virtual bool OnMousePressed(const MouseEvent& e); 90 virtual bool OnMousePressed(const MouseEvent& e);
91 virtual bool OnMouseDragged(const MouseEvent& e); 91 virtual bool OnMouseDragged(const MouseEvent& e);
92 virtual void OnMouseReleased(const MouseEvent& e, bool canceled); 92 virtual void OnMouseReleased(const MouseEvent& e, bool canceled);
93 virtual void OnMouseMoved(const MouseEvent& e); 93 virtual void OnMouseMoved(const MouseEvent& e);
94 virtual void SetMouseHandler(View* new_mouse_handler); 94 virtual void SetMouseHandler(View* new_mouse_handler);
95 95
96 // Invoked By the Widget if the mouse drag is interrupted by 96 // Invoked By the Widget if the mouse drag is interrupted by
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 // True if we're currently processing paint. 324 // True if we're currently processing paint.
325 bool is_processing_paint_; 325 bool is_processing_paint_;
326 #endif 326 #endif
327 327
328 DISALLOW_COPY_AND_ASSIGN(RootView); 328 DISALLOW_COPY_AND_ASSIGN(RootView);
329 }; 329 };
330 330
331 } // namespace views 331 } // namespace views
332 332
333 #endif // VIEWS_WIDGET_ROOT_VIEW_H_ 333 #endif // VIEWS_WIDGET_ROOT_VIEW_H_
OLDNEW
« no previous file with comments | « views/view.cc ('k') | views/widget/root_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698