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

Side by Side Diff: content/renderer/browser_plugin/browser_plugin.h

Issue 11154025: browser-plugin: Accept drags through the new WebPlugin interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge Created 8 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
« no previous file with comments | « no previous file | content/renderer/browser_plugin/browser_plugin.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ 5 #ifndef CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_
6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ 6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_
7 7
8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPlugin.h" 8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPlugin.h"
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 void Stop(); 101 void Stop();
102 // A request from Javascript has been made to reload the page. 102 // A request from Javascript has been made to reload the page.
103 void Reload(); 103 void Reload();
104 104
105 // WebKit::WebPlugin implementation. 105 // WebKit::WebPlugin implementation.
106 virtual WebKit::WebPluginContainer* container() const OVERRIDE; 106 virtual WebKit::WebPluginContainer* container() const OVERRIDE;
107 virtual bool initialize(WebKit::WebPluginContainer* container) OVERRIDE; 107 virtual bool initialize(WebKit::WebPluginContainer* container) OVERRIDE;
108 virtual void destroy() OVERRIDE; 108 virtual void destroy() OVERRIDE;
109 virtual NPObject* scriptableObject() OVERRIDE; 109 virtual NPObject* scriptableObject() OVERRIDE;
110 virtual bool supportsKeyboardFocus() const OVERRIDE; 110 virtual bool supportsKeyboardFocus() const OVERRIDE;
111 virtual bool canProcessDrag() const OVERRIDE;
111 virtual void paint( 112 virtual void paint(
112 WebKit::WebCanvas* canvas, 113 WebKit::WebCanvas* canvas,
113 const WebKit::WebRect& rect) OVERRIDE; 114 const WebKit::WebRect& rect) OVERRIDE;
114 virtual void updateGeometry( 115 virtual void updateGeometry(
115 const WebKit::WebRect& frame_rect, 116 const WebKit::WebRect& frame_rect,
116 const WebKit::WebRect& clip_rect, 117 const WebKit::WebRect& clip_rect,
117 const WebKit::WebVector<WebKit::WebRect>& cut_outs_rects, 118 const WebKit::WebVector<WebKit::WebRect>& cut_outs_rects,
118 bool is_visible) OVERRIDE; 119 bool is_visible) OVERRIDE;
119 virtual void updateFocus(bool focused) OVERRIDE; 120 virtual void updateFocus(bool focused) OVERRIDE;
120 virtual void updateVisibility(bool visible) OVERRIDE; 121 virtual void updateVisibility(bool visible) OVERRIDE;
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 // the changes are not always obvious. For example, there is a maximum 223 // the changes are not always obvious. For example, there is a maximum
223 // number of entries and earlier ones will automatically be pruned. 224 // number of entries and earlier ones will automatically be pruned.
224 int current_nav_entry_index_; 225 int current_nav_entry_index_;
225 int nav_entry_count_; 226 int nav_entry_count_;
226 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); 227 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin);
227 }; 228 };
228 229
229 } // namespace content 230 } // namespace content
230 231
231 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ 232 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/browser_plugin/browser_plugin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698