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

Side by Side Diff: ui/ozone/platform/test/ozone_platform_test.cc

Issue 205433005: ozone: Add OzoneWindowFactory & OzoneWindow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/ozone/platform/test/ozone_platform_test.h" 5 #include "ui/ozone/platform/test/ozone_platform_test.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "ui/ozone/ozone_platform.h" 9 #include "ui/ozone/ozone_platform.h"
10 #include "ui/ozone/ozone_switches.h" 10 #include "ui/ozone/ozone_switches.h"
(...skipping 15 matching lines...) Expand all
26 26
27 ui::InputMethodContextFactoryOzone* 27 ui::InputMethodContextFactoryOzone*
28 OzonePlatformTest::GetInputMethodContextFactoryOzone() { 28 OzonePlatformTest::GetInputMethodContextFactoryOzone() {
29 return &input_method_context_factory_ozone_; 29 return &input_method_context_factory_ozone_;
30 } 30 }
31 31
32 ui::CursorFactoryOzone* OzonePlatformTest::GetCursorFactoryOzone() { 32 ui::CursorFactoryOzone* OzonePlatformTest::GetCursorFactoryOzone() {
33 return &cursor_factory_ozone_; 33 return &cursor_factory_ozone_;
34 } 34 }
35 35
36 ui::WindowFactoryOzone* OzonePlatformTest::GetWindowFactoryOzone() {
37 return &window_factory_ozone_;
38 }
39
36 OzonePlatform* CreateOzonePlatformTest() { 40 OzonePlatform* CreateOzonePlatformTest() {
37 CommandLine* cmd = CommandLine::ForCurrentProcess(); 41 CommandLine* cmd = CommandLine::ForCurrentProcess();
38 base::FilePath location = base::FilePath("/dev/null"); 42 base::FilePath location = base::FilePath("/dev/null");
39 if (cmd->HasSwitch(switches::kOzoneDumpFile)) 43 if (cmd->HasSwitch(switches::kOzoneDumpFile))
40 location = cmd->GetSwitchValuePath(switches::kOzoneDumpFile); 44 location = cmd->GetSwitchValuePath(switches::kOzoneDumpFile);
41 return new OzonePlatformTest(location); 45 return new OzonePlatformTest(location);
42 } 46 }
43 47
44 } // namespace ui 48 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698