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

Side by Side Diff: chrome/browser/metro_viewer/metro_viewer_process_host_win.h

Issue 10984007: in-chrome viewer for metro (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename messages to have metro prefix Created 8 years, 2 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 2012 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_BROWSER_METRO_VIEWER_METRO_VIEWER_PROCESS_HOST_WIN_H_
6 #define CHROME_BROWSER_METRO_VIEWER_METRO_VIEWER_PROCESS_HOST_WIN_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/weak_ptr.h"
10 #include "base/threading/non_thread_safe.h"
11 #include "ipc/ipc_listener.h"
12 #include "ipc/ipc_sender.h"
13 #include "ui/gfx/native_widget_types.h"
14
15 namespace IPC {
16 class ChannelProxy;
17 }
18
19 class MetroViewerProcessHost : public IPC::Listener,
20 public IPC::Sender,
21 public base::NonThreadSafe {
22 public:
23 MetroViewerProcessHost();
24 virtual ~MetroViewerProcessHost();
25
26 // IPC::Sender implementation.
27 virtual bool Send(IPC::Message* msg) OVERRIDE;
28
29 // IPC::Listener implementation.
30 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
31
32 private:
33 void OnSetTargetSurface(gfx::NativeViewId target_surface);
34 void OnMouseEvent(int msg, WPARAM w_param, LPARAM l_param);
35
36 scoped_ptr<IPC::ChannelProxy> channel_;
37
38 DISALLOW_COPY_AND_ASSIGN(MetroViewerProcessHost);
39 };
40
41 #endif // CHROME_BROWSER_METRO_VIEWER_METRO_VIEWER_PROCESS_HOST_WIN_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main_win.cc ('k') | chrome/browser/metro_viewer/metro_viewer_process_host_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698