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

Side by Side Diff: ui/views/test/test_views_delegate.cc

Issue 10081022: Aura/ash split: Remove hacks and get chrome linking without ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move the check to ash/. Created 8 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
« no previous file with comments | « ui/views/test/test_views_delegate.h ('k') | ui/views/views.gyp » ('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) 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/test/test_views_delegate.h" 5 #include "ui/views/test/test_views_delegate.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "ui/base/clipboard/clipboard.h" 8 #include "ui/base/clipboard/clipboard.h"
9 9
10 #if defined(USE_AURA)
11 #include "ui/views/widget/desktop_native_widget_helper_aura.h"
12 #endif
13
10 namespace views { 14 namespace views {
11 15
12 TestViewsDelegate::TestViewsDelegate() 16 TestViewsDelegate::TestViewsDelegate()
13 : use_transparent_windows_(false) { 17 : use_transparent_windows_(false) {
14 DCHECK(!ViewsDelegate::views_delegate); 18 DCHECK(!ViewsDelegate::views_delegate);
15 ViewsDelegate::views_delegate = this; 19 ViewsDelegate::views_delegate = this;
16 } 20 }
17 21
18 TestViewsDelegate::~TestViewsDelegate() { 22 TestViewsDelegate::~TestViewsDelegate() {
19 ViewsDelegate::views_delegate = NULL; 23 ViewsDelegate::views_delegate = NULL;
(...skipping 30 matching lines...) Expand all
50 } 54 }
51 55
52 bool TestViewsDelegate::UseTransparentWindows() const { 56 bool TestViewsDelegate::UseTransparentWindows() const {
53 return use_transparent_windows_; 57 return use_transparent_windows_;
54 } 58 }
55 59
56 int TestViewsDelegate::GetDispositionForEvent(int event_flags) { 60 int TestViewsDelegate::GetDispositionForEvent(int event_flags) {
57 return 0; 61 return 0;
58 } 62 }
59 63
64 #if defined(USE_AURA)
65 views::NativeWidgetHelperAura* TestViewsDelegate::CreateNativeWidgetHelper(
66 views::NativeWidgetAura* native_widget) {
67 return new views::DesktopNativeWidgetHelperAura(native_widget);
68 }
69 #endif
70
60 } // namespace views 71 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/test/test_views_delegate.h ('k') | ui/views/views.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698