| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 WEBKIT_GLUE_PLUGIN_WEBPLUGIN_DELEGATE_IMPL_H_ | 5 #ifndef WEBKIT_GLUE_PLUGIN_WEBPLUGIN_DELEGATE_IMPL_H_ |
| 6 #define WEBKIT_GLUE_PLUGIN_WEBPLUGIN_DELEGATE_IMPL_H_ | 6 #define WEBKIT_GLUE_PLUGIN_WEBPLUGIN_DELEGATE_IMPL_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 NPAPI::PluginInstance* instance() { return instance_.get(); } | 151 NPAPI::PluginInstance* instance() { return instance_.get(); } |
| 152 | 152 |
| 153 // Closes down and destroys our plugin instance. | 153 // Closes down and destroys our plugin instance. |
| 154 void DestroyInstance(); | 154 void DestroyInstance(); |
| 155 | 155 |
| 156 // used for windowed plugins | 156 // used for windowed plugins |
| 157 gfx::NativeView windowed_handle_; | 157 gfx::NativeView windowed_handle_; |
| 158 bool windowed_did_set_window_; | 158 bool windowed_did_set_window_; |
| 159 #if defined(OS_WIN) | 159 #if defined(OS_WIN) |
| 160 gfx::Rect windowed_last_pos_; | 160 gfx::Rect windowed_last_pos_; |
| 161 // True if we should manage the position of the HWND. If false, it's managed |
| 162 // elsewhere and we should keep it at the origin. |
| 163 bool windowed_manage_position_; |
| 161 #endif | 164 #endif |
| 162 | 165 |
| 163 // this is an optimization to avoid calling SetWindow to the plugin | 166 // this is an optimization to avoid calling SetWindow to the plugin |
| 164 // when it is not necessary. Initially, we need to call SetWindow, | 167 // when it is not necessary. Initially, we need to call SetWindow, |
| 165 // and after that we only need to call it when the geometry changes. | 168 // and after that we only need to call it when the geometry changes. |
| 166 // use this flag to indicate whether we really need it or not. | 169 // use this flag to indicate whether we really need it or not. |
| 167 bool windowless_needs_set_window_; | 170 bool windowless_needs_set_window_; |
| 168 | 171 |
| 169 // used by windowed and windowless plugins | 172 // used by windowed and windowless plugins |
| 170 bool windowless_; | 173 bool windowless_; |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 | 274 |
| 272 // Holds the current cursor set by the windowless plugin. | 275 // Holds the current cursor set by the windowless plugin. |
| 273 WebCursor current_windowless_cursor_; | 276 WebCursor current_windowless_cursor_; |
| 274 | 277 |
| 275 friend class WebPluginDelegate; | 278 friend class WebPluginDelegate; |
| 276 | 279 |
| 277 DISALLOW_EVIL_CONSTRUCTORS(WebPluginDelegateImpl); | 280 DISALLOW_EVIL_CONSTRUCTORS(WebPluginDelegateImpl); |
| 278 }; | 281 }; |
| 279 | 282 |
| 280 #endif // #ifndef WEBKIT_GLUE_PLUGIN_WEBPLUGIN_DELEGATE_IMPL_H_ | 283 #endif // #ifndef WEBKIT_GLUE_PLUGIN_WEBPLUGIN_DELEGATE_IMPL_H_ |
| OLD | NEW |