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

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

Issue 8621006: Remove most obvious TOUCH_UI code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert file that CQ does not like. Created 9 years 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/ui.gyp ('k') | views/controls/menu/menu_config_aura.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) 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 "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/hit_test.h" 10 #include "ui/base/hit_test.h"
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 return widget; 216 return widget;
217 } 217 }
218 218
219 // static 219 // static
220 void Widget::SetPureViews(bool pure) { 220 void Widget::SetPureViews(bool pure) {
221 use_pure_views = pure; 221 use_pure_views = pure;
222 } 222 }
223 223
224 // static 224 // static
225 bool Widget::IsPureViews() { 225 bool Widget::IsPureViews() {
226 #if defined(USE_AURA) || defined(TOUCH_UI) 226 #if defined(USE_AURA)
227 return true; 227 return true;
228 #else 228 #else
229 return use_pure_views; 229 return use_pure_views;
230 #endif 230 #endif
231 } 231 }
232 232
233 // static 233 // static
234 Widget* Widget::GetWidgetForNativeView(gfx::NativeView native_view) { 234 Widget* Widget::GetWidgetForNativeView(gfx::NativeView native_view) {
235 internal::NativeWidgetPrivate* native_widget = 235 internal::NativeWidgetPrivate* native_widget =
236 internal::NativeWidgetPrivate::GetNativeWidgetForNativeView(native_view); 236 internal::NativeWidgetPrivate::GetNativeWidgetForNativeView(native_view);
(...skipping 961 matching lines...) Expand 10 before | Expand all | Expand 10 after
1198 1198
1199 //////////////////////////////////////////////////////////////////////////////// 1199 ////////////////////////////////////////////////////////////////////////////////
1200 // internal::NativeWidgetPrivate, NativeWidget implementation: 1200 // internal::NativeWidgetPrivate, NativeWidget implementation:
1201 1201
1202 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { 1202 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() {
1203 return this; 1203 return this;
1204 } 1204 }
1205 1205
1206 } // namespace internal 1206 } // namespace internal
1207 } // namespace views 1207 } // namespace views
OLDNEW
« no previous file with comments | « ui/ui.gyp ('k') | views/controls/menu/menu_config_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698