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

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

Issue 239093007: Update Windows UI on system color changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync and rebase. Created 6 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 1182 matching lines...) Expand 10 before | Expand all | Expand 10 after
1193 // drag. These methods cache in a platform-appropriate way. These values are 1193 // drag. These methods cache in a platform-appropriate way. These values are
1194 // used by the public static method ExceededDragThreshold(). 1194 // used by the public static method ExceededDragThreshold().
1195 static int GetHorizontalDragThreshold(); 1195 static int GetHorizontalDragThreshold();
1196 static int GetVerticalDragThreshold(); 1196 static int GetVerticalDragThreshold();
1197 1197
1198 // NativeTheme --------------------------------------------------------------- 1198 // NativeTheme ---------------------------------------------------------------
1199 1199
1200 // Invoked when the NativeTheme associated with this View changes. 1200 // Invoked when the NativeTheme associated with this View changes.
1201 virtual void OnNativeThemeChanged(const ui::NativeTheme* theme) {} 1201 virtual void OnNativeThemeChanged(const ui::NativeTheme* theme) {}
1202 1202
1203 // Invokes OnNativeThemeChanged() on this and all descendants.
1204 void PropagateNativeThemeChanged(const ui::NativeTheme* theme);
1205
1203 // Debugging ----------------------------------------------------------------- 1206 // Debugging -----------------------------------------------------------------
1204 1207
1205 #if !defined(NDEBUG) 1208 #if !defined(NDEBUG)
1206 // Returns string containing a graph of the views hierarchy in graphViz DOT 1209 // Returns string containing a graph of the views hierarchy in graphViz DOT
1207 // language (http://graphviz.org/). Can be called within debugger and save 1210 // language (http://graphviz.org/). Can be called within debugger and save
1208 // to a file to compile/view. 1211 // to a file to compile/view.
1209 // Note: Assumes initial call made with first = true. 1212 // Note: Assumes initial call made with first = true.
1210 virtual std::string PrintViewGraph(bool first); 1213 virtual std::string PrintViewGraph(bool first);
1211 1214
1212 // Some classes may own an object which contains the children to displayed in 1215 // Some classes may own an object which contains the children to displayed in
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
1267 1270
1268 // Propagates NativeViewHierarchyChanged() notification through all the 1271 // Propagates NativeViewHierarchyChanged() notification through all the
1269 // children. 1272 // children.
1270 void PropagateNativeViewHierarchyChanged(); 1273 void PropagateNativeViewHierarchyChanged();
1271 1274
1272 // Takes care of registering/unregistering accelerators if 1275 // Takes care of registering/unregistering accelerators if
1273 // |register_accelerators| true and calls ViewHierarchyChanged(). 1276 // |register_accelerators| true and calls ViewHierarchyChanged().
1274 void ViewHierarchyChangedImpl(bool register_accelerators, 1277 void ViewHierarchyChangedImpl(bool register_accelerators,
1275 const ViewHierarchyChangedDetails& details); 1278 const ViewHierarchyChangedDetails& details);
1276 1279
1277 // Invokes OnNativeThemeChanged() on this and all descendants.
1278 void PropagateNativeThemeChanged(const ui::NativeTheme* theme);
1279
1280 // Size and disposition ------------------------------------------------------ 1280 // Size and disposition ------------------------------------------------------
1281 1281
1282 // Call VisibilityChanged() recursively for all children. 1282 // Call VisibilityChanged() recursively for all children.
1283 void PropagateVisibilityNotifications(View* from, bool is_visible); 1283 void PropagateVisibilityNotifications(View* from, bool is_visible);
1284 1284
1285 // Registers/unregisters accelerators as necessary and calls 1285 // Registers/unregisters accelerators as necessary and calls
1286 // VisibilityChanged(). 1286 // VisibilityChanged().
1287 void VisibilityChangedImpl(View* starting_from, bool is_visible); 1287 void VisibilityChangedImpl(View* starting_from, bool is_visible);
1288 1288
1289 // Responsible for propagating bounds change notifications to relevant 1289 // Responsible for propagating bounds change notifications to relevant
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
1559 // Belongs to this view, but it's reference-counted on some platforms 1559 // Belongs to this view, but it's reference-counted on some platforms
1560 // so we can't use a scoped_ptr. It's dereferenced in the destructor. 1560 // so we can't use a scoped_ptr. It's dereferenced in the destructor.
1561 NativeViewAccessibility* native_view_accessibility_; 1561 NativeViewAccessibility* native_view_accessibility_;
1562 1562
1563 DISALLOW_COPY_AND_ASSIGN(View); 1563 DISALLOW_COPY_AND_ASSIGN(View);
1564 }; 1564 };
1565 1565
1566 } // namespace views 1566 } // namespace views
1567 1567
1568 #endif // UI_VIEWS_VIEW_H_ 1568 #endif // UI_VIEWS_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698