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

Side by Side Diff: webkit/glue/plugins/pepper_fullscreen_container.h

Issue 4365001: Use optimized scrolling for pepper plugins. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 1 month 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_PLUGINS_PEPPER_FULLSCREEN_CONTAINER_H_ 5 #ifndef WEBKIT_GLUE_PLUGINS_PEPPER_FULLSCREEN_CONTAINER_H_
6 #define WEBKIT_GLUE_PLUGINS_PEPPER_FULLSCREEN_CONTAINER_H_ 6 #define WEBKIT_GLUE_PLUGINS_PEPPER_FULLSCREEN_CONTAINER_H_
7 7
8 namespace WebKit { 8 namespace WebKit {
9 struct WebRect; 9 struct WebRect;
10 } // namespace WebKit 10 } // namespace WebKit
11 11
12 namespace pepper { 12 namespace pepper {
13 13
14 // This class is like a lightweight WebPluginContainer for fullscreen pepper 14 // This class is like a lightweight WebPluginContainer for fullscreen pepper
15 // plugins, that only handles painting. 15 // plugins, that only handles painting.
16 class FullscreenContainer { 16 class FullscreenContainer {
17 public: 17 public:
18 virtual ~FullscreenContainer() {} 18 virtual ~FullscreenContainer() {}
19 19
20 // Invalidates the full plugin region. 20 // Invalidates the full plugin region.
21 virtual void Invalidate() = 0; 21 virtual void Invalidate() = 0;
22 22
23 // Invalidates a partial region of the plugin. 23 // Invalidates a partial region of the plugin.
24 virtual void InvalidateRect(const WebKit::WebRect&) = 0; 24 virtual void InvalidateRect(const WebKit::WebRect&) = 0;
25 25
26 // Scrolls a partial region of the plugin in the given direction.
27 virtual void ScrollRect(int dx, int dy, const WebKit::WebRect&) = 0;
28
26 // Destroys the fullscreen window. This also destroys the FullscreenContainer 29 // Destroys the fullscreen window. This also destroys the FullscreenContainer
27 // instance. 30 // instance.
28 virtual void Destroy() = 0; 31 virtual void Destroy() = 0;
29 }; 32 };
30 33
31 } // namespace pepper 34 } // namespace pepper
32 35
33 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_FULLSCREEN_CONTAINER_H_ 36 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_FULLSCREEN_CONTAINER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698