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

Side by Side Diff: ui/ozone/ozone_platform.h

Issue 44053005: Implement --ozone-platform flag to select OzonePlatform implementation at runtime (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 7 years, 1 month 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
« no previous file with comments | « ui/ozone/ozone.gyp ('k') | ui/ozone/ozone_platform.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 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 #ifndef UI_OZONE_OZONE_PLATFORM_H_ 5 #ifndef UI_OZONE_OZONE_PLATFORM_H_
6 #define UI_OZONE_OZONE_PLATFORM_H_ 6 #define UI_OZONE_OZONE_PLATFORM_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "ui/events/ozone/event_factory_ozone.h" 9 #include "ui/events/ozone/event_factory_ozone.h"
10 #include "ui/gfx/ozone/surface_factory_ozone.h" 10 #include "ui/gfx/ozone/surface_factory_ozone.h"
(...skipping 29 matching lines...) Expand all
40 // inject these objects themselves. Ownership is retained by OzonePlatform. 40 // inject these objects themselves. Ownership is retained by OzonePlatform.
41 virtual gfx::SurfaceFactoryOzone* GetSurfaceFactoryOzone() = 0; 41 virtual gfx::SurfaceFactoryOzone* GetSurfaceFactoryOzone() = 0;
42 virtual ui::EventFactoryOzone* GetEventFactoryOzone() = 0; 42 virtual ui::EventFactoryOzone* GetEventFactoryOzone() = 0;
43 43
44 private: 44 private:
45 static OzonePlatform* instance_; 45 static OzonePlatform* instance_;
46 46
47 DISALLOW_COPY_AND_ASSIGN(OzonePlatform); 47 DISALLOW_COPY_AND_ASSIGN(OzonePlatform);
48 }; 48 };
49 49
50 // Hook to be provided by the built-in default implementation.
51 OzonePlatform* CreateDefaultOzonePlatform();
52
53 } // namespace ui 50 } // namespace ui
54 51
55 #endif // UI_OZONE_OZONE_PLATFORM_H_ 52 #endif // UI_OZONE_OZONE_PLATFORM_H_
OLDNEW
« no previous file with comments | « ui/ozone/ozone.gyp ('k') | ui/ozone/ozone_platform.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698