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

Unified Diff: blimp/engine/session/tab.h

Issue 2325893002: [blimp] Add support for having multiple tabs (Closed)
Patch Set: Add tablet and non-blimp support Created 4 years, 3 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
« no previous file with comments | « blimp/engine/session/blimp_engine_session.cc ('k') | blimp/engine/session/tab.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/engine/session/tab.h
diff --git a/blimp/engine/session/tab.h b/blimp/engine/session/tab.h
index 60c51d66d8f1d82702ce90d24467ffa37fdc0f5e..e6cb86c822caec02bcf63c846d39148f2fc78a5a 100644
--- a/blimp/engine/session/tab.h
+++ b/blimp/engine/session/tab.h
@@ -6,6 +6,7 @@
#define BLIMP_ENGINE_SESSION_TAB_H_
#include "base/macros.h"
+#include "blimp/engine/feature/engine_render_widget_feature.h"
#include "blimp/engine/session/page_load_tracker.h"
#include "content/public/browser/invalidate_type.h"
#include "content/public/browser/web_contents_observer.h"
@@ -25,7 +26,9 @@ class EngineRenderWidgetFeature;
// Owns WebContents, handles operations such as navigation requests in the tab,
// and has one-to-one mapping to a client tab.
-class Tab : public content::WebContentsObserver, public PageLoadTrackerClient {
+class Tab : public content::WebContentsObserver,
+ public PageLoadTrackerClient,
+ public EngineRenderWidgetFeature::RenderWidgetMessageDelegate {
public:
// Caller ensures |render_widget_feature| and |navigation_message_sender|
// outlives this object.
@@ -57,6 +60,15 @@ class Tab : public content::WebContentsObserver, public PageLoadTrackerClient {
// PageLoadTrackerClient implementation.
void SendPageLoadStatusUpdate(PageLoadStatus load_status) override;
+ // RenderWidgetMessage handler methods.
+ // RenderWidgetMessageDelegate implementation.
+ void OnWebGestureEvent(
+ content::RenderWidgetHost* render_widget_host,
+ std::unique_ptr<blink::WebGestureEvent> event) override;
+ void OnCompositorMessageReceived(
+ content::RenderWidgetHost* render_widget_host,
+ const std::vector<uint8_t>& message) override;
+
private:
// content::WebContentsObserver implementation.
void RenderViewCreated(content::RenderViewHost* render_view_host) override;
« no previous file with comments | « blimp/engine/session/blimp_engine_session.cc ('k') | blimp/engine/session/tab.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698