| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |