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

Unified Diff: content/browser/browser_plugin/browser_plugin_guest.h

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 side-by-side diff with in-line comments
Download patch
Index: content/browser/browser_plugin/browser_plugin_guest.h
diff --git a/content/browser/browser_plugin/browser_plugin_guest.h b/content/browser/browser_plugin/browser_plugin_guest.h
index 176b41ee4ab0491d4471181c61aba95e61cbba4c..59be6c21eb48f789ce4be0ddd46474e18824be00 100644
--- a/content/browser/browser_plugin/browser_plugin_guest.h
+++ b/content/browser/browser_plugin/browser_plugin_guest.h
@@ -30,6 +30,7 @@
#include "content/public/browser/browser_plugin_guest_delegate.h"
#include "content/public/browser/readback_types.h"
#include "content/public/browser/web_contents_observer.h"
+#include "third_party/WebKit/public/platform/WebFocusType.h"
#include "third_party/WebKit/public/web/WebCompositionUnderline.h"
#include "third_party/WebKit/public/web/WebDragOperation.h"
#include "third_party/WebKit/public/web/WebDragStatus.h"
@@ -50,10 +51,6 @@ struct FrameMsg_CompositorFrameSwapped_Params;
struct FrameHostMsg_ShowPopup_Params;
#endif
-namespace blink {
-class WebInputEvent;
-} // namespace blink
-
namespace cc {
class CompositorFrame;
} // namespace cc
@@ -114,7 +111,9 @@ class CONTENT_EXPORT BrowserPluginGuest : public GuestSizer,
base::WeakPtr<BrowserPluginGuest> AsWeakPtr();
// Sets the focus state of the current RenderWidgetHostView.
- void SetFocus(RenderWidgetHost* rwh, bool focused);
+ void SetFocus(RenderWidgetHost* rwh,
+ bool focused,
+ blink::WebFocusType focus_type);
// Sets the tooltip text.
void SetTooltipText(const base::string16& tooltip_text);
@@ -268,7 +267,9 @@ class CONTENT_EXPORT BrowserPluginGuest : public GuestSizer,
void OnResizeGuest(
int browser_plugin_instance_id,
const BrowserPluginHostMsg_ResizeGuest_Params& params);
- void OnSetFocus(int instance_id, bool focused);
+ void OnSetFocus(int instance_id,
+ bool focused,
+ blink::WebFocusType focus_type);
// Sets the name of the guest so that other guests in the same partition can
// access it.
void OnSetName(int instance_id, const std::string& name);
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_embedder.cc ('k') | content/browser/browser_plugin/browser_plugin_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698