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

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

Issue 7780012: First step into enabling pure views build for Chromium/ChromiumOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Renaming for clarity Created 9 years, 3 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 | « build/common.gypi ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "views/widget/widget.h" 5 #include "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/l10n/l10n_font_util.h" 10 #include "ui/base/l10n/l10n_font_util.h"
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 return widget; 208 return widget;
209 } 209 }
210 210
211 // static 211 // static
212 void Widget::SetPureViews(bool pure) { 212 void Widget::SetPureViews(bool pure) {
213 use_pure_views = pure; 213 use_pure_views = pure;
214 } 214 }
215 215
216 // static 216 // static
217 bool Widget::IsPureViews() { 217 bool Widget::IsPureViews() {
218 #if defined(TOUCH_UI) 218 #if defined(USE_ONLY_PURE_VIEWS)
219 return true; 219 return true;
220 #else 220 #else
221 return use_pure_views; 221 return use_pure_views;
222 #endif 222 #endif
223 } 223 }
224 224
225 // static 225 // static
226 Widget* Widget::GetWidgetForNativeView(gfx::NativeView native_view) { 226 Widget* Widget::GetWidgetForNativeView(gfx::NativeView native_view) {
227 internal::NativeWidgetPrivate* native_widget = 227 internal::NativeWidgetPrivate* native_widget =
228 internal::NativeWidgetPrivate::GetNativeWidgetForNativeView(native_view); 228 internal::NativeWidgetPrivate::GetNativeWidgetForNativeView(native_view);
(...skipping 916 matching lines...) Expand 10 before | Expand all | Expand 10 after
1145 1145
1146 //////////////////////////////////////////////////////////////////////////////// 1146 ////////////////////////////////////////////////////////////////////////////////
1147 // internal::NativeWidgetPrivate, NativeWidget implementation: 1147 // internal::NativeWidgetPrivate, NativeWidget implementation:
1148 1148
1149 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { 1149 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() {
1150 return this; 1150 return this;
1151 } 1151 }
1152 1152
1153 } // namespace internal 1153 } // namespace internal
1154 } // namespace views 1154 } // namespace views
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698