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

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

Issue 387993004: MacViews: Change Widget context type to NativeWindow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
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/views_test_base.h" 5 #include "ui/views/test/views_test_base.h"
6 6
7 #include "base/run_loop.h" 7 #include "base/run_loop.h"
8 #include "ui/base/clipboard/clipboard.h" 8 #include "ui/base/clipboard/clipboard.h"
9 #include "ui/base/ime/input_method_initializer.h" 9 #include "ui/base/ime/input_method_initializer.h"
10 #include "ui/compositor/test/context_factories_for_test.h" 10 #include "ui/compositor/test/context_factories_for_test.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 run_loop.RunUntilIdle(); 58 run_loop.RunUntilIdle();
59 } 59 }
60 60
61 Widget::InitParams ViewsTestBase::CreateParams( 61 Widget::InitParams ViewsTestBase::CreateParams(
62 Widget::InitParams::Type type) { 62 Widget::InitParams::Type type) {
63 Widget::InitParams params(type); 63 Widget::InitParams params(type);
64 params.context = GetContext(); 64 params.context = GetContext();
65 return params; 65 return params;
66 } 66 }
67 67
68 gfx::NativeView ViewsTestBase::GetContext() { 68 gfx::NativeWindow ViewsTestBase::GetContext() {
69 return test_helper_->GetContext(); 69 return test_helper_->GetContext();
70 } 70 }
71 71
72 } // namespace views 72 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698