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

Side by Side Diff: ui/ozone/platform/caca/ozone_platform_caca.h

Issue 230763004: Split ui/display types into separate module and have Ozone depend on it (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 6 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/ozone/ozone_platform.cc ('k') | ui/ozone/platform/caca/ozone_platform_caca.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 2014 The Chromium Authors. All rights reserved. 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 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_PLATFORM_CACA_OZONE_PLATFORM_CACA_H_ 5 #ifndef UI_OZONE_PLATFORM_CACA_OZONE_PLATFORM_CACA_H_
6 #define UI_OZONE_PLATFORM_CACA_OZONE_PLATFORM_CACA_H_ 6 #define UI_OZONE_PLATFORM_CACA_OZONE_PLATFORM_CACA_H_
7 7
8 #include "ui/base/cursor/ozone/cursor_factory_ozone.h" 8 #include "ui/base/cursor/ozone/cursor_factory_ozone.h"
9 #include "ui/ozone/ozone_export.h" 9 #include "ui/ozone/ozone_export.h"
10 #include "ui/ozone/ozone_platform.h" 10 #include "ui/ozone/ozone_platform.h"
11 #include "ui/ozone/platform/caca/caca_connection.h" 11 #include "ui/ozone/platform/caca/caca_connection.h"
12 #include "ui/ozone/platform/caca/caca_event_factory.h" 12 #include "ui/ozone/platform/caca/caca_event_factory.h"
13 #include "ui/ozone/platform/caca/caca_surface_factory.h" 13 #include "ui/ozone/platform/caca/caca_surface_factory.h"
14 14
15 namespace ui { 15 namespace ui {
16 16
17 class CacaConnection; 17 class CacaConnection;
18 18
19 class OzonePlatformCaca : public OzonePlatform { 19 class OzonePlatformCaca : public OzonePlatform {
20 public: 20 public:
21 OzonePlatformCaca(); 21 OzonePlatformCaca();
22 virtual ~OzonePlatformCaca(); 22 virtual ~OzonePlatformCaca();
23 23
24 virtual gfx::SurfaceFactoryOzone* GetSurfaceFactoryOzone() OVERRIDE; 24 virtual gfx::SurfaceFactoryOzone* GetSurfaceFactoryOzone() OVERRIDE;
25 virtual ui::EventFactoryOzone* GetEventFactoryOzone() OVERRIDE; 25 virtual ui::EventFactoryOzone* GetEventFactoryOzone() OVERRIDE;
26 virtual ui::InputMethodContextFactoryOzone* 26 virtual ui::InputMethodContextFactoryOzone*
27 GetInputMethodContextFactoryOzone() OVERRIDE; 27 GetInputMethodContextFactoryOzone() OVERRIDE;
28 virtual ui::CursorFactoryOzone* GetCursorFactoryOzone() OVERRIDE; 28 virtual ui::CursorFactoryOzone* GetCursorFactoryOzone() OVERRIDE;
29 #if defined(OS_CHROMEOS)
30 virtual scoped_ptr<ui::NativeDisplayDelegate>
31 CreateNativeDisplayDelegate() OVERRIDE;
32 #endif
29 33
30 private: 34 private:
31 ui::CacaConnection connection_; 35 ui::CacaConnection connection_;
32 ui::CacaSurfaceFactory surface_factory_ozone_; 36 ui::CacaSurfaceFactory surface_factory_ozone_;
33 ui::CacaEventFactory event_factory_ozone_; 37 ui::CacaEventFactory event_factory_ozone_;
34 // This creates a minimal input context. 38 // This creates a minimal input context.
35 ui::InputMethodContextFactoryOzone input_method_context_factory_ozone_; 39 ui::InputMethodContextFactoryOzone input_method_context_factory_ozone_;
36 ui::CursorFactoryOzone cursor_factory_ozone_; 40 ui::CursorFactoryOzone cursor_factory_ozone_;
37 41
38 DISALLOW_COPY_AND_ASSIGN(OzonePlatformCaca); 42 DISALLOW_COPY_AND_ASSIGN(OzonePlatformCaca);
39 }; 43 };
40 44
41 // Constructor hook for use in ozone_platform_list.cc 45 // Constructor hook for use in ozone_platform_list.cc
42 OZONE_EXPORT OzonePlatform* CreateOzonePlatformCaca(); 46 OZONE_EXPORT OzonePlatform* CreateOzonePlatformCaca();
43 47
44 } // namespace ui 48 } // namespace ui
45 49
46 #endif // UI_OZONE_PLATFORM_CACA_OZONE_PLATFORM_CACA_H_ 50 #endif // UI_OZONE_PLATFORM_CACA_OZONE_PLATFORM_CACA_H_
OLDNEW
« no previous file with comments | « ui/ozone/ozone_platform.cc ('k') | ui/ozone/platform/caca/ozone_platform_caca.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698