Commit 039246ad authored by Lei Zhang's avatar Lei Zhang Committed by Commit Bot

Remove unused BrowserPluginGuest::OnSetEditCommandsForNextKeyEvent().

Also fix IWYU lint errors.

Change-Id: I814836a05639abab91b146a9559f84fff5278c6a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2168806Reviewed-by: default avatarJames MacLean <wjmaclean@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#763418}
parent 84445cc2
...@@ -522,16 +522,6 @@ void BrowserPluginGuest::OnSetFocus(int browser_plugin_instance_id, ...@@ -522,16 +522,6 @@ void BrowserPluginGuest::OnSetFocus(int browser_plugin_instance_id,
SetFocus(rwh, focused, focus_type); SetFocus(rwh, focused, focus_type);
} }
void BrowserPluginGuest::OnSetEditCommandsForNextKeyEvent(
int browser_plugin_instance_id,
const std::vector<EditCommand>& edit_commands) {
GetWebContents()
->GetRenderViewHost()
->GetWidget()
->GetWidgetInputHandler()
->SetEditCommandsForNextKeyEvent(edit_commands);
}
void BrowserPluginGuest::OnUnlockMouseAck(int browser_plugin_instance_id) { void BrowserPluginGuest::OnUnlockMouseAck(int browser_plugin_instance_id) {
// mouse_locked_ could be false here if the lock attempt was cancelled due // mouse_locked_ could be false here if the lock attempt was cancelled due
// to window focus, or for various other reasons before the guest was informed // to window focus, or for various other reasons before the guest was informed
......
...@@ -22,6 +22,8 @@ ...@@ -22,6 +22,8 @@
#include <map> #include <map>
#include <memory> #include <memory>
#include <string>
#include <vector>
#include "base/compiler_specific.h" #include "base/compiler_specific.h"
#include "base/containers/circular_deque.h" #include "base/containers/circular_deque.h"
...@@ -228,7 +230,6 @@ class CONTENT_EXPORT BrowserPluginGuest : public GuestHost, ...@@ -228,7 +230,6 @@ class CONTENT_EXPORT BrowserPluginGuest : public GuestHost,
const gfx::Point& relative_point); const gfx::Point& relative_point);
protected: protected:
// BrowserPluginGuest is a WebContentsObserver of |web_contents| and // BrowserPluginGuest is a WebContentsObserver of |web_contents| and
// |web_contents| has to stay valid for the lifetime of BrowserPluginGuest. // |web_contents| has to stay valid for the lifetime of BrowserPluginGuest.
// Constructor protected for testing. // Constructor protected for testing.
...@@ -271,10 +272,7 @@ class CONTENT_EXPORT BrowserPluginGuest : public GuestHost, ...@@ -271,10 +272,7 @@ class CONTENT_EXPORT BrowserPluginGuest : public GuestHost,
// Sets the name of the guest so that other guests in the same partition can // Sets the name of the guest so that other guests in the same partition can
// access it. // access it.
void OnSetName(int instance_id, const std::string& name); void OnSetName(int instance_id, const std::string& name);
// Updates the size state of the guest.
void OnSetEditCommandsForNextKeyEvent(
int instance_id,
const std::vector<EditCommand>& edit_commands);
// TODO(wjmaclean): Investigate how to update this comment. // TODO(wjmaclean): Investigate how to update this comment.
// The guest WebContents is visible if both its embedder is visible and // The guest WebContents is visible if both its embedder is visible and
// the browser plugin element is visible. If either one is not then the // the browser plugin element is visible. If either one is not then the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment