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

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

Issue 11367041: Adds View::GetNativeTheme() to get the NativeTheme. The interesting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix include Created 8 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 | Annotate | Revision Log
« no previous file with comments | « ui/views/widget/widget.h ('k') | no next file » | 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) 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 #include "ui/views/widget/widget.h" 5 #include "ui/views/widget/widget.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "ui/base/events/event.h" 10 #include "ui/base/events/event.h"
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after
665 if (provider) 665 if (provider)
666 return provider; 666 return provider;
667 667
668 provider = root_widget->default_theme_provider_.get(); 668 provider = root_widget->default_theme_provider_.get();
669 if (provider) 669 if (provider)
670 return provider; 670 return provider;
671 } 671 }
672 return default_theme_provider_.get(); 672 return default_theme_provider_.get();
673 } 673 }
674 674
675 ui::NativeTheme* Widget::GetNativeTheme() {
676 return native_widget_->GetNativeTheme();
677 }
678
675 FocusManager* Widget::GetFocusManager() { 679 FocusManager* Widget::GetFocusManager() {
676 Widget* toplevel_widget = GetTopLevelWidget(); 680 Widget* toplevel_widget = GetTopLevelWidget();
677 return toplevel_widget ? toplevel_widget->focus_manager_.get() : NULL; 681 return toplevel_widget ? toplevel_widget->focus_manager_.get() : NULL;
678 } 682 }
679 683
680 const FocusManager* Widget::GetFocusManager() const { 684 const FocusManager* Widget::GetFocusManager() const {
681 const Widget* toplevel_widget = GetTopLevelWidget(); 685 const Widget* toplevel_widget = GetTopLevelWidget();
682 return toplevel_widget ? toplevel_widget->focus_manager_.get() : NULL; 686 return toplevel_widget ? toplevel_widget->focus_manager_.get() : NULL;
683 } 687 }
684 688
(...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after
1360 1364
1361 //////////////////////////////////////////////////////////////////////////////// 1365 ////////////////////////////////////////////////////////////////////////////////
1362 // internal::NativeWidgetPrivate, NativeWidget implementation: 1366 // internal::NativeWidgetPrivate, NativeWidget implementation:
1363 1367
1364 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { 1368 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() {
1365 return this; 1369 return this;
1366 } 1370 }
1367 1371
1368 } // namespace internal 1372 } // namespace internal
1369 } // namespace views 1373 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/widget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698