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

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

Issue 6452011: Rework tree APIs to reflect Google style and more const-correctness.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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/widget/drop_helper.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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 // Invoked by the Widget to discover what rectangle should be painted. 74 // Invoked by the Widget to discover what rectangle should be painted.
75 const gfx::Rect& GetScheduledPaintRect(); 75 const gfx::Rect& GetScheduledPaintRect();
76 76
77 // Returns the region scheduled to paint clipped to the RootViews bounds. 77 // Returns the region scheduled to paint clipped to the RootViews bounds.
78 gfx::Rect GetScheduledPaintRectConstrainedToSize(); 78 gfx::Rect GetScheduledPaintRectConstrainedToSize();
79 79
80 // Tree functions 80 // Tree functions
81 81
82 // Get the Widget that hosts this View. 82 // Get the Widget that hosts this View.
83 virtual Widget* GetWidget() const; 83 virtual const Widget* GetWidget() const;
84 virtual Widget* GetWidget();
84 85
85 // Public API for broadcasting theme change notifications to this View 86 // Public API for broadcasting theme change notifications to this View
86 // hierarchy. 87 // hierarchy.
87 void NotifyThemeChanged(); 88 void NotifyThemeChanged();
88 89
89 // Public API for broadcasting locale change notifications to this View 90 // Public API for broadcasting locale change notifications to this View
90 // hierarchy. 91 // hierarchy.
91 void NotifyLocaleChanged(); 92 void NotifyLocaleChanged();
92 93
93 // The following event methods are overridden to propagate event to the 94 // The following event methods are overridden to propagate event to the
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 351
351 #ifndef NDEBUG 352 #ifndef NDEBUG
352 // True if we're currently processing paint. 353 // True if we're currently processing paint.
353 bool is_processing_paint_; 354 bool is_processing_paint_;
354 #endif 355 #endif
355 DISALLOW_COPY_AND_ASSIGN(RootView); 356 DISALLOW_COPY_AND_ASSIGN(RootView);
356 }; 357 };
357 } // namespace views 358 } // namespace views
358 359
359 #endif // VIEWS_WIDGET_ROOT_VIEW_H_ 360 #endif // VIEWS_WIDGET_ROOT_VIEW_H_
OLDNEW
« no previous file with comments | « views/widget/drop_helper.cc ('k') | views/widget/root_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698