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

Side by Side Diff: content/renderer/npapi/webplugin_impl.cc

Issue 853333002: Browser Plugin: Make aware of focus direction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 5 years, 11 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) 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 #include "content/renderer/npapi/webplugin_impl.h" 5 #include "content/renderer/npapi/webplugin_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/debug/crash_logging.h" 9 #include "base/debug/crash_logging.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 // a geometry update during paint which should go out correctly as the 372 // a geometry update during paint which should go out correctly as the
373 // initial geometry update was not cached. 373 // initial geometry update was not cached.
374 if (!first_geometry_update_) 374 if (!first_geometry_update_)
375 geometry_ = new_geometry; 375 geometry_ = new_geometry;
376 #else // OS_WIN 376 #else // OS_WIN
377 geometry_ = new_geometry; 377 geometry_ = new_geometry;
378 #endif // OS_WIN 378 #endif // OS_WIN
379 first_geometry_update_ = false; 379 first_geometry_update_ = false;
380 } 380 }
381 381
382 void WebPluginImpl::updateFocus(bool focused) { 382 void WebPluginImpl::updateFocus(bool focused, blink::WebFocusType focus_type) {
383 if (accepts_input_events_) 383 if (accepts_input_events_)
384 delegate_->SetFocus(focused); 384 delegate_->SetFocus(focused);
385 } 385 }
386 386
387 void WebPluginImpl::updateVisibility(bool visible) { 387 void WebPluginImpl::updateVisibility(bool visible) {
388 if (!window_) 388 if (!window_)
389 return; 389 return;
390 390
391 WebPluginGeometry move; 391 WebPluginGeometry move;
392 move.window = window_; 392 move.window = window_;
(...skipping 1137 matching lines...) Expand 10 before | Expand all | Expand 10 after
1530 case PLUGIN_SRC: 1530 case PLUGIN_SRC:
1531 webframe_->setReferrerForRequest(*request, plugin_url_); 1531 webframe_->setReferrerForRequest(*request, plugin_url_);
1532 break; 1532 break;
1533 1533
1534 default: 1534 default:
1535 break; 1535 break;
1536 } 1536 }
1537 } 1537 }
1538 1538
1539 } // namespace content 1539 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/npapi/webplugin_impl.h ('k') | content/renderer/pepper/pepper_webplugin_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698