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

Side by Side Diff: chrome/test/base/view_event_test_platform_part.h

Issue 443553003: MacViews: Split ViewEventTestBase into platform-specific files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: self-review: fix class comment, remove dead gyp cruft Created 6 years, 4 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
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_TEST_BASE_VIEW_EVENT_TEST_PLATFORM_PART_H_
6 #define CHROME_TEST_BASE_VIEW_EVENT_TEST_PLATFORM_PART_H_
7
8 #include "base/macros.h"
9 #include "ui/gfx/native_widget_types.h"
10
11 namespace ui {
12 class ContextFactory;
13 }
14
15 // A helper class owned by tests that performs platform specific initialization.
16 // ViewEventTestPlatformPart behaves a bit like views::ViewsTestHelper, but on
17 // ChromeOS it will create an Ash shell environment, rather than using an
18 // AuraTestHelper.
19 class ViewEventTestPlatformPart {
20 public:
21 virtual ~ViewEventTestPlatformPart() {}
22
23 // Set up the platform-specific environment. Teardown is performed in the
24 // destructor.
25 static ViewEventTestPlatformPart* Create(ui::ContextFactory* context_factory);
26
27 // The Widget context for creating the test window. This will be the Ash root
28 // window on ChromeOS environments. Otherwise it should return NULL.
29 virtual gfx::NativeWindow GetContext() = 0;
30
31 protected:
32 ViewEventTestPlatformPart() {}
33
34 private:
35 DISALLOW_COPY_AND_ASSIGN(ViewEventTestPlatformPart);
36 };
37
38 #endif // CHROME_TEST_BASE_VIEW_EVENT_TEST_PLATFORM_PART_H_
OLDNEW
« no previous file with comments | « chrome/test/base/view_event_test_base.cc ('k') | chrome/test/base/view_event_test_platform_part_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698