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

Side by Side Diff: win8/metro_driver/chrome_app_view_ash.h

Issue 1184523003: attachment broker wip (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor comments. Created 5 years, 6 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 | « remoting/host/remoting_me2me_host.cc ('k') | win8/metro_driver/chrome_app_view_ash.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 WIN8_METRO_DRIVER_CHROME_APP_VIEW_ASH_H_ 5 #ifndef WIN8_METRO_DRIVER_CHROME_APP_VIEW_ASH_H_
6 #define WIN8_METRO_DRIVER_CHROME_APP_VIEW_ASH_H_ 6 #define WIN8_METRO_DRIVER_CHROME_APP_VIEW_ASH_H_
7 7
8 #include <windows.applicationmodel.core.h> 8 #include <windows.applicationmodel.core.h>
9 #include <windows.ui.core.h> 9 #include <windows.ui.core.h>
10 #include <windows.ui.input.h> 10 #include <windows.ui.input.h>
11 #include <windows.ui.viewmanagement.h> 11 #include <windows.ui.viewmanagement.h>
12 12
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/message_loop/message_loop.h" 14 #include "base/message_loop/message_loop.h"
15 #include "base/strings/string16.h" 15 #include "base/strings/string16.h"
16 #include "base/threading/thread.h" 16 #include "base/threading/thread.h"
17 #include "ipc/ipc_listener.h" 17 #include "ipc/ipc_listener.h"
18 #include "ui/events/event_constants.h" 18 #include "ui/events/event_constants.h"
19 #include "win8/metro_driver/direct3d_helper.h" 19 #include "win8/metro_driver/direct3d_helper.h"
20 #include "win8/metro_driver/ime/ime_popup_observer.h" 20 #include "win8/metro_driver/ime/ime_popup_observer.h"
21 #include "win8/metro_driver/ime/input_source_observer.h" 21 #include "win8/metro_driver/ime/input_source_observer.h"
22 #include "win8/metro_driver/ime/text_service_delegate.h" 22 #include "win8/metro_driver/ime/text_service_delegate.h"
23 23
24 namespace base { 24 namespace base {
25 class FilePath; 25 class FilePath;
26 } 26 }
27 27
28 namespace IPC { 28 namespace IPC {
29 class AttachmentBroker;
29 class Listener; 30 class Listener;
30 class ChannelProxy; 31 class ChannelProxy;
31 } 32 }
32 33
33 namespace metro_driver { 34 namespace metro_driver {
34 class InputSource; 35 class InputSource;
35 class TextService; 36 class TextService;
36 } 37 }
37 38
38 namespace metro_viewer { 39 namespace metro_viewer {
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 // events do not contain that state, but Ash's MouseEvents need it. Value is 225 // events do not contain that state, but Ash's MouseEvents need it. Value is
225 // as a bitmask of ui::EventFlags. 226 // as a bitmask of ui::EventFlags.
226 uint32 mouse_down_flags_; 227 uint32 mouse_down_flags_;
227 228
228 // Set the D3D swap chain and nothing else. 229 // Set the D3D swap chain and nothing else.
229 metro_driver::Direct3DHelper direct3d_helper_; 230 metro_driver::Direct3DHelper direct3d_helper_;
230 231
231 // The IPC channel IO thread. 232 // The IPC channel IO thread.
232 scoped_ptr<base::Thread> io_thread_; 233 scoped_ptr<base::Thread> io_thread_;
233 234
235 // Broker for IPC attachments.
236 scoped_ptr<IPC::AttachmentBroker> attachment_broker_;
237
234 // The channel to Chrome, in particular to the MetroViewerProcessHost. 238 // The channel to Chrome, in particular to the MetroViewerProcessHost.
235 scoped_ptr<IPC::ChannelProxy> ui_channel_; 239 scoped_ptr<IPC::ChannelProxy> ui_channel_;
236 240
237 // The actual window behind the view surface. 241 // The actual window behind the view surface.
238 HWND core_window_hwnd_; 242 HWND core_window_hwnd_;
239 243
240 // UI message loop to allow message passing into this thread. 244 // UI message loop to allow message passing into this thread.
241 base::MessageLoopForUI ui_loop_; 245 base::MessageLoopForUI ui_loop_;
242 246
243 // For IME support. 247 // For IME support.
244 scoped_ptr<metro_driver::InputSource> input_source_; 248 scoped_ptr<metro_driver::InputSource> input_source_;
245 scoped_ptr<metro_driver::TextService> text_service_; 249 scoped_ptr<metro_driver::TextService> text_service_;
246 250
247 // The metro device scale factor as reported by the winrt interfaces. 251 // The metro device scale factor as reported by the winrt interfaces.
248 float metro_dpi_scale_; 252 float metro_dpi_scale_;
249 // The win32 dpi scale which is queried via GetDeviceCaps. Please refer to 253 // The win32 dpi scale which is queried via GetDeviceCaps. Please refer to
250 // ui/gfx/win/dpi.cc for more information. 254 // ui/gfx/win/dpi.cc for more information.
251 float win32_dpi_scale_; 255 float win32_dpi_scale_;
252 256
253 // The cursor set by the chroem browser process. 257 // The cursor set by the chroem browser process.
254 HCURSOR last_cursor_; 258 HCURSOR last_cursor_;
255 259
256 // Pointer to the channel listener for the channel between the viewer and 260 // Pointer to the channel listener for the channel between the viewer and
257 // the browser. 261 // the browser.
258 IPC::Listener* channel_listener_; 262 IPC::Listener* channel_listener_;
259 }; 263 };
260 264
261 #endif // WIN8_METRO_DRIVER_CHROME_APP_VIEW_ASH_H_ 265 #endif // WIN8_METRO_DRIVER_CHROME_APP_VIEW_ASH_H_
OLDNEW
« no previous file with comments | « remoting/host/remoting_me2me_host.cc ('k') | win8/metro_driver/chrome_app_view_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698