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

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

Issue 2795503002: mash: Don't synthesize extra key press events in the window server (Closed)
Patch Set: remove InputMethodBridge workaround Created 3 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
« no previous file with comments | « ui/aura/env.cc ('k') | ui/ozone/public/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 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_PUBLIC_OZONE_PLATFORM_H_ 5 #ifndef UI_OZONE_PUBLIC_OZONE_PLATFORM_H_
6 #define UI_OZONE_PUBLIC_OZONE_PLATFORM_H_ 6 #define UI_OZONE_PUBLIC_OZONE_PLATFORM_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // Initializes the subsystems/resources necessary for the UI process (e.g. 86 // Initializes the subsystems/resources necessary for the UI process (e.g.
87 // events) with additional properties to customize the ozone platform 87 // events) with additional properties to customize the ozone platform
88 // implementation. Ozone will not retain InitParams after returning from 88 // implementation. Ozone will not retain InitParams after returning from
89 // InitalizeForUI. 89 // InitalizeForUI.
90 static void InitializeForUI(const InitParams& args); 90 static void InitializeForUI(const InitParams& args);
91 91
92 // Initializes the subsystems for rendering but with additional properties 92 // Initializes the subsystems for rendering but with additional properties
93 // provided by |args| as with InitalizeForUI. 93 // provided by |args| as with InitalizeForUI.
94 static void InitializeForGPU(const InitParams& args); 94 static void InitializeForGPU(const InitParams& args);
95 95
96 // Deletes the instance. Does nothing if OzonePlatform has not yet been
97 // initialized.
98 static void Shutdown();
99
96 static OzonePlatform* GetInstance(); 100 static OzonePlatform* GetInstance();
97 101
98 // Factory getters to override in subclasses. The returned objects will be 102 // Factory getters to override in subclasses. The returned objects will be
99 // injected into the appropriate layer at startup. Subclasses should not 103 // injected into the appropriate layer at startup. Subclasses should not
100 // inject these objects themselves. Ownership is retained by OzonePlatform. 104 // inject these objects themselves. Ownership is retained by OzonePlatform.
101 virtual ui::SurfaceFactoryOzone* GetSurfaceFactoryOzone() = 0; 105 virtual ui::SurfaceFactoryOzone* GetSurfaceFactoryOzone() = 0;
102 virtual ui::OverlayManagerOzone* GetOverlayManager() = 0; 106 virtual ui::OverlayManagerOzone* GetOverlayManager() = 0;
103 virtual ui::CursorFactoryOzone* GetCursorFactoryOzone() = 0; 107 virtual ui::CursorFactoryOzone* GetCursorFactoryOzone() = 0;
104 virtual ui::InputController* GetInputController() = 0; 108 virtual ui::InputController* GetInputController() = 0;
105 virtual IPC::MessageFilter* GetGpuMessageFilter(); 109 virtual IPC::MessageFilter* GetGpuMessageFilter();
(...skipping 24 matching lines...) Expand all
130 virtual void InitializeGPU(const InitParams& params) = 0; 134 virtual void InitializeGPU(const InitParams& params) = 0;
131 135
132 static OzonePlatform* instance_; 136 static OzonePlatform* instance_;
133 137
134 DISALLOW_COPY_AND_ASSIGN(OzonePlatform); 138 DISALLOW_COPY_AND_ASSIGN(OzonePlatform);
135 }; 139 };
136 140
137 } // namespace ui 141 } // namespace ui
138 142
139 #endif // UI_OZONE_PUBLIC_OZONE_PLATFORM_H_ 143 #endif // UI_OZONE_PUBLIC_OZONE_PLATFORM_H_
OLDNEW
« no previous file with comments | « ui/aura/env.cc ('k') | ui/ozone/public/ozone_platform.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698