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

Side by Side Diff: win8/viewer/metro_viewer_process_host.h

Issue 271543009: Send the device scale factor from Windows 8 ASH during initialization via the MetroViewerHostMsg_Se… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed tabs Created 6 years, 7 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 | « win8/metro_driver/metro_driver.gyp ('k') | no next file » | 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 WIN8_VIEWER_METRO_VIEWER_PROCESS_HOST_H_ 5 #ifndef WIN8_VIEWER_METRO_VIEWER_PROCESS_HOST_H_
6 #define WIN8_VIEWER_METRO_VIEWER_PROCESS_HOST_H_ 6 #define WIN8_VIEWER_METRO_VIEWER_PROCESS_HOST_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 private: 57 private:
58 // IPC::Sender implementation: 58 // IPC::Sender implementation:
59 virtual bool Send(IPC::Message* msg) OVERRIDE; 59 virtual bool Send(IPC::Message* msg) OVERRIDE;
60 60
61 // IPC::Listener implementation: 61 // IPC::Listener implementation:
62 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 62 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
63 virtual void OnChannelError() OVERRIDE = 0; 63 virtual void OnChannelError() OVERRIDE = 0;
64 64
65 // Called over IPC by the viewer process to tell this host that it should be 65 // Called over IPC by the viewer process to tell this host that it should be
66 // drawing to |target_surface|. 66 // drawing to |target_surface|.
67 virtual void OnSetTargetSurface(gfx::NativeViewId target_surface) = 0; 67 virtual void OnSetTargetSurface(gfx::NativeViewId target_surface,
68 float device_scale) = 0;
68 69
69 // Called over IPC by the viewer process to request that the url passed in be 70 // Called over IPC by the viewer process to request that the url passed in be
70 // opened. 71 // opened.
71 virtual void OnOpenURL(const base::string16& url) = 0; 72 virtual void OnOpenURL(const base::string16& url) = 0;
72 73
73 // Called over IPC by the viewer process to request that the search string 74 // Called over IPC by the viewer process to request that the search string
74 // passed in is passed to the default search provider and a URL navigation be 75 // passed in is passed to the default search provider and a URL navigation be
75 // performed. 76 // performed.
76 virtual void OnHandleSearchRequest(const base::string16& search_string) = 0; 77 virtual void OnHandleSearchRequest(const base::string16& search_string) = 0;
77 78
(...skipping 21 matching lines...) Expand all
99 scoped_ptr<IPC::ChannelProxy> channel_; 100 scoped_ptr<IPC::ChannelProxy> channel_;
100 scoped_ptr<base::WaitableEvent> channel_connected_event_; 101 scoped_ptr<base::WaitableEvent> channel_connected_event_;
101 scoped_refptr<InternalMessageFilter> message_filter_; 102 scoped_refptr<InternalMessageFilter> message_filter_;
102 103
103 DISALLOW_COPY_AND_ASSIGN(MetroViewerProcessHost); 104 DISALLOW_COPY_AND_ASSIGN(MetroViewerProcessHost);
104 }; 105 };
105 106
106 } // namespace win8 107 } // namespace win8
107 108
108 #endif // WIN8_VIEWER_METRO_VIEWER_PROCESS_HOST_H_ 109 #endif // WIN8_VIEWER_METRO_VIEWER_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « win8/metro_driver/metro_driver.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698