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

Side by Side Diff: webkit/glue/webplugin_delegate.h

Issue 159907: linux: fix windowless Flash when scrolling (Closed)
Patch Set: address review comments Created 11 years, 4 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
OLDNEW
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_WEBPLUGIN_DELEGATE_H_ 5 #ifndef WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H_
6 #define WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H_ 6 #define WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/gfx/native_widget_types.h" 10 #include "base/gfx/native_widget_types.h"
(...skipping 22 matching lines...) Expand all
33 enum PluginQuirks { 33 enum PluginQuirks {
34 PLUGIN_QUIRK_SETWINDOW_TWICE = 1, // Win32 34 PLUGIN_QUIRK_SETWINDOW_TWICE = 1, // Win32
35 PLUGIN_QUIRK_THROTTLE_WM_USER_PLUS_ONE = 2, // Win32 35 PLUGIN_QUIRK_THROTTLE_WM_USER_PLUS_ONE = 2, // Win32
36 PLUGIN_QUIRK_DONT_CALL_WND_PROC_RECURSIVELY = 4, // Win32 36 PLUGIN_QUIRK_DONT_CALL_WND_PROC_RECURSIVELY = 4, // Win32
37 PLUGIN_QUIRK_DONT_SET_NULL_WINDOW_HANDLE_ON_DESTROY = 8, // Win32 37 PLUGIN_QUIRK_DONT_SET_NULL_WINDOW_HANDLE_ON_DESTROY = 8, // Win32
38 PLUGIN_QUIRK_DONT_ALLOW_MULTIPLE_INSTANCES = 16, // Win32 38 PLUGIN_QUIRK_DONT_ALLOW_MULTIPLE_INSTANCES = 16, // Win32
39 PLUGIN_QUIRK_DIE_AFTER_UNLOAD = 32, // Win32 39 PLUGIN_QUIRK_DIE_AFTER_UNLOAD = 32, // Win32
40 PLUGIN_QUIRK_PATCH_SETCURSOR = 64, // Win32 40 PLUGIN_QUIRK_PATCH_SETCURSOR = 64, // Win32
41 PLUGIN_QUIRK_BLOCK_NONSTANDARD_GETURL_REQUESTS = 128, // Win32 41 PLUGIN_QUIRK_BLOCK_NONSTANDARD_GETURL_REQUESTS = 128, // Win32
42 PLUGIN_QUIRK_WINDOWLESS_OFFSET_WINDOW_TO_DRAW = 256, // Linux 42 PLUGIN_QUIRK_WINDOWLESS_OFFSET_WINDOW_TO_DRAW = 256, // Linux
43 PLUGIN_QUIRK_WINDOWLESS_INVALIDATE_AFTER_SET_WINDOW = 512, // Linux
43 }; 44 };
44 45
45 WebPluginDelegate() {} 46 WebPluginDelegate() {}
46 virtual ~WebPluginDelegate() {} 47 virtual ~WebPluginDelegate() {}
47 48
48 static WebPluginDelegate* Create(const FilePath& filename, 49 static WebPluginDelegate* Create(const FilePath& filename,
49 const std::string& mime_type, 50 const std::string& mime_type,
50 gfx::PluginWindowHandle containing_view); 51 gfx::PluginWindowHandle containing_view);
51 52
52 // Initializes the plugin implementation with the given (UTF8) arguments. 53 // Initializes the plugin implementation with the given (UTF8) arguments.
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 virtual const gfx::Rect& GetClipRect() const; 147 virtual const gfx::Rect& GetClipRect() const;
147 148
148 // Returns a combination of PluginQuirks. 149 // Returns a combination of PluginQuirks.
149 virtual int GetQuirks() const; 150 virtual int GetQuirks() const;
150 151
151 private: 152 private:
152 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegate); 153 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegate);
153 }; 154 };
154 155
155 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H_ 156 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698