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

Unified Diff: blimp/client/app/linux/blimp_display_manager.h

Issue 2363153002: Migrate Linux Blimp client to use BlimpClientContext (Closed)
Patch Set: Fix dependency issue found by gn check 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
Index: blimp/client/app/linux/blimp_display_manager.h
diff --git a/blimp/client/app/linux/blimp_display_manager.h b/blimp/client/app/linux/blimp_display_manager.h
index 426ae4455d30667f54c4e4fb467d4b31f664f321..450656b2e872881c654606bfb9d60bc15a41d52d 100644
--- a/blimp/client/app/linux/blimp_display_manager.h
+++ b/blimp/client/app/linux/blimp_display_manager.h
@@ -17,32 +17,37 @@ class Size;
}
namespace ui {
+class PlatformEventSource;
class PlatformWindow;
}
namespace blimp {
namespace client {
-class BlimpCompositorDependencies;
-class BlimpCompositorManager;
class BrowserCompositor;
-class RenderWidgetFeature;
-class TabControlFeature;
+class BlimpContents;
+class CompositorDependencies;
class BlimpDisplayManagerDelegate {
public:
virtual void OnClosed() = 0;
};
+// Manages an X11 window that interacts with a Compositor by listening to the
+// window's event handlers
class BlimpDisplayManager : public ui::PlatformWindowDelegate {
public:
- BlimpDisplayManager(const gfx::Size& window_size,
- BlimpDisplayManagerDelegate* delegate,
- RenderWidgetFeature* render_widget_feature,
- TabControlFeature* tab_control_feature);
+ // |delegate|: The delegate to receive the OnClosed call.
+ // |compositor_dependencies|: Set of compositor dependencies provided by the
+ // embedder.
+ BlimpDisplayManager(BlimpDisplayManagerDelegate* delegate,
+ CompositorDependencies* compositor_dependencies);
~BlimpDisplayManager() override;
- // ui::PlatformWindowDelegate:
+ void SetWindowSize(const gfx::Size& window_size);
+ void SetBlimpContents(std::unique_ptr<BlimpContents> contents);
+
+ // ui::PlatformWindowDelegate implementation.
void OnBoundsChanged(const gfx::Rect& new_bounds) override;
void OnDamageRect(const gfx::Rect& damaged_region) override {}
void DispatchEvent(ui::Event* event) override;
@@ -75,11 +80,10 @@ class BlimpDisplayManager : public ui::PlatformWindowDelegate {
float device_pixel_ratio_;
BlimpDisplayManagerDelegate* delegate_;
- TabControlFeature* tab_control_feature_;
- std::unique_ptr<BlimpCompositorDependencies> compositor_dependencies_;
- std::unique_ptr<BlimpCompositorManager> compositor_manager_;
std::unique_ptr<BrowserCompositor> compositor_;
+ std::unique_ptr<BlimpContents> contents_;
+ std::unique_ptr<ui::PlatformEventSource> platform_event_source_;
std::unique_ptr<ui::PlatformWindow> platform_window_;
DISALLOW_COPY_AND_ASSIGN(BlimpDisplayManager);
« no previous file with comments | « blimp/client/app/linux/blimp_client_context_delegate_linux.cc ('k') | blimp/client/app/linux/blimp_display_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698