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

Side by Side Diff: chrome/browser/plugin_process_host.h

Issue 257008: Fix several issues around fullscreen Mac plugins:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 CHROME_BROWSER_PLUGIN_PROCESS_HOST_H_ 5 #ifndef CHROME_BROWSER_PLUGIN_PROCESS_HOST_H_
6 #define CHROME_BROWSER_PLUGIN_PROCESS_HOST_H_ 6 #define CHROME_BROWSER_PLUGIN_PROCESS_HOST_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #include <set> 10 #include <set>
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 #if defined(OS_WIN) 105 #if defined(OS_WIN)
106 void OnPluginWindowDestroyed(HWND window, HWND parent); 106 void OnPluginWindowDestroyed(HWND window, HWND parent);
107 void OnDownloadUrl(const std::string& url, int source_child_unique_id, 107 void OnDownloadUrl(const std::string& url, int source_child_unique_id,
108 gfx::NativeWindow caller_window); 108 gfx::NativeWindow caller_window);
109 #endif 109 #endif
110 110
111 #if defined(OS_LINUX) 111 #if defined(OS_LINUX)
112 void OnMapNativeViewId(gfx::NativeViewId id, gfx::PluginWindowHandle* output); 112 void OnMapNativeViewId(gfx::NativeViewId id, gfx::PluginWindowHandle* output);
113 #endif 113 #endif
114 114
115 #if defined(OS_MACOSX)
116 void OnPluginSelectWindow(uint32 window_id, gfx::Rect window_rect);
117 void OnPluginShowWindow(uint32 window_id, gfx::Rect window_rect);
118 void OnPluginHideWindow(uint32 window_id, gfx::Rect window_rect);
119 void OnPluginDisposeWindow(uint32 window_id, gfx::Rect window_rect);
120 #endif
121
115 virtual bool CanShutdown() { return sent_requests_.empty(); } 122 virtual bool CanShutdown() { return sent_requests_.empty(); }
116 123
117 struct ChannelRequest { 124 struct ChannelRequest {
118 ChannelRequest(ResourceMessageFilter* renderer_message_filter, 125 ChannelRequest(ResourceMessageFilter* renderer_message_filter,
119 const std::string& m, IPC::Message* r) : 126 const std::string& m, IPC::Message* r) :
120 mime_type(m), reply_msg(r), 127 mime_type(m), reply_msg(r),
121 renderer_message_filter_(renderer_message_filter) { } 128 renderer_message_filter_(renderer_message_filter) { }
122 std::string mime_type; 129 std::string mime_type;
123 IPC::Message* reply_msg; 130 IPC::Message* reply_msg;
124 scoped_refptr<ResourceMessageFilter> renderer_message_filter_; 131 scoped_refptr<ResourceMessageFilter> renderer_message_filter_;
(...skipping 11 matching lines...) Expand all
136 WebPluginInfo info_; 143 WebPluginInfo info_;
137 144
138 // Helper class for handling PluginProcessHost_ResolveProxy messages (manages 145 // Helper class for handling PluginProcessHost_ResolveProxy messages (manages
139 // the requests to the proxy service). 146 // the requests to the proxy service).
140 ResolveProxyMsgHelper resolve_proxy_msg_helper_; 147 ResolveProxyMsgHelper resolve_proxy_msg_helper_;
141 148
142 #if defined(OS_WIN) 149 #if defined(OS_WIN)
143 // Tracks plugin parent windows created on the UI thread. 150 // Tracks plugin parent windows created on the UI thread.
144 std::set<HWND> plugin_parent_windows_set_; 151 std::set<HWND> plugin_parent_windows_set_;
145 #endif 152 #endif
153 #if defined(OS_MACOSX)
154 // Tracks plugin windows currently visible
155 std::set<uint32> plugin_visible_windows_set_;
156 #endif
146 157
147 DISALLOW_COPY_AND_ASSIGN(PluginProcessHost); 158 DISALLOW_COPY_AND_ASSIGN(PluginProcessHost);
148 }; 159 };
149 160
150 #endif // CHROME_BROWSER_PLUGIN_PROCESS_HOST_H_ 161 #endif // CHROME_BROWSER_PLUGIN_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698