| OLD | NEW | 
|---|
| 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  Loading... | 
| 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  Loading... | 
| 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 | 
| OLD | NEW | 
|---|