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

Side by Side Diff: webkit/glue/plugins/webplugin_impl.cc

Issue 3531008: Integrated Pepper3D v2 with the accelerated compositor.... (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 #include "webkit/glue/plugins/webplugin_impl.h" 5 #include "webkit/glue/plugins/webplugin_impl.h"
6 6
7 #include "base/linked_ptr.h" 7 #include "base/linked_ptr.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 // a geometry update during paint which should go out correctly as the 320 // a geometry update during paint which should go out correctly as the
321 // initial geometry update was not cached. 321 // initial geometry update was not cached.
322 if (!first_geometry_update_) 322 if (!first_geometry_update_)
323 geometry_ = new_geometry; 323 geometry_ = new_geometry;
324 #else // OS_WIN 324 #else // OS_WIN
325 geometry_ = new_geometry; 325 geometry_ = new_geometry;
326 #endif // OS_WIN 326 #endif // OS_WIN
327 first_geometry_update_ = false; 327 first_geometry_update_ = false;
328 } 328 }
329 329
330 unsigned WebPluginImpl::getBackingTextureId() {
331 // Regular plugins do not have a backing texture.
332 return 0;
333 }
334
330 void WebPluginImpl::updateFocus(bool focused) { 335 void WebPluginImpl::updateFocus(bool focused) {
331 if (accepts_input_events_) 336 if (accepts_input_events_)
332 delegate_->SetFocus(focused); 337 delegate_->SetFocus(focused);
333 } 338 }
334 339
335 void WebPluginImpl::updateVisibility(bool visible) { 340 void WebPluginImpl::updateVisibility(bool visible) {
336 if (!window_ || !page_delegate_) 341 if (!window_ || !page_delegate_)
337 return; 342 return;
338 343
339 WebPluginGeometry move; 344 WebPluginGeometry move;
(...skipping 979 matching lines...) Expand 10 before | Expand all | Expand 10 after
1319 WebDevToolsAgent* WebPluginImpl::GetDevToolsAgent() { 1324 WebDevToolsAgent* WebPluginImpl::GetDevToolsAgent() {
1320 if (!webframe_) 1325 if (!webframe_)
1321 return NULL; 1326 return NULL;
1322 WebView* view = webframe_->view(); 1327 WebView* view = webframe_->view();
1323 if (!view) 1328 if (!view)
1324 return NULL; 1329 return NULL;
1325 return view->devToolsAgent(); 1330 return view->devToolsAgent();
1326 } 1331 }
1327 1332
1328 } // namespace webkit_glue 1333 } // namespace webkit_glue
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698