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

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

Issue 1438513003: [MD] Implement incognito colors as a NativeTheme (for Aura). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: iterate on chips Created 5 years, 1 month 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_WIDGET_WIDGET_H_ 5 #ifndef UI_VIEWS_WIDGET_WIDGET_H_
6 #define UI_VIEWS_WIDGET_WIDGET_H_ 6 #define UI_VIEWS_WIDGET_WIDGET_H_
7 7
8 #include <set> 8 #include <set>
9 #include <stack> 9 #include <stack>
10 #include <vector> 10 #include <vector>
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 // Returns whether the Widget is visible to the user. 554 // Returns whether the Widget is visible to the user.
555 virtual bool IsVisible() const; 555 virtual bool IsVisible() const;
556 556
557 // Returns the ThemeProvider that provides theme resources for this Widget. 557 // Returns the ThemeProvider that provides theme resources for this Widget.
558 virtual ui::ThemeProvider* GetThemeProvider() const; 558 virtual ui::ThemeProvider* GetThemeProvider() const;
559 559
560 ui::NativeTheme* GetNativeTheme() { 560 ui::NativeTheme* GetNativeTheme() {
561 return const_cast<ui::NativeTheme*>( 561 return const_cast<ui::NativeTheme*>(
562 const_cast<const Widget*>(this)->GetNativeTheme()); 562 const_cast<const Widget*>(this)->GetNativeTheme());
563 } 563 }
564 const ui::NativeTheme* GetNativeTheme() const; 564 virtual const ui::NativeTheme* GetNativeTheme() const;
565 565
566 // Returns the FocusManager for this widget. 566 // Returns the FocusManager for this widget.
567 // Note that all widgets in a widget hierarchy share the same focus manager. 567 // Note that all widgets in a widget hierarchy share the same focus manager.
568 FocusManager* GetFocusManager(); 568 FocusManager* GetFocusManager();
569 const FocusManager* GetFocusManager() const; 569 const FocusManager* GetFocusManager() const;
570 570
571 // Returns the ui::InputMethod for this widget. 571 // Returns the ui::InputMethod for this widget.
572 ui::InputMethod* GetInputMethod(); 572 ui::InputMethod* GetInputMethod();
573 573
574 // Starts a drag operation for the specified view. This blocks until the drag 574 // Starts a drag operation for the specified view. This blocks until the drag
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
959 bool movement_disabled_; 959 bool movement_disabled_;
960 960
961 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; 961 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_;
962 962
963 DISALLOW_COPY_AND_ASSIGN(Widget); 963 DISALLOW_COPY_AND_ASSIGN(Widget);
964 }; 964 };
965 965
966 } // namespace views 966 } // namespace views
967 967
968 #endif // UI_VIEWS_WIDGET_WIDGET_H_ 968 #endif // UI_VIEWS_WIDGET_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698