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

Side by Side Diff: blimp/client/linux/blimp_display_manager.h

Issue 1551683002: [Blimp Client] Land CL 1528243002 (Add a basic linux client for Blimp) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 unified diff | Download patch
« no previous file with comments | « blimp/client/compositor/blimp_compositor.h ('k') | blimp/client/linux/blimp_display_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef BLIMP_CLIENT_LINUX_BLIMP_DISPLAY_MANAGER_H_
6 #define BLIMP_CLIENT_LINUX_BLIMP_DISPLAY_MANAGER_H_
7
8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "ui/platform_window/platform_window_delegate.h"
11
12 namespace gfx {
13 class Size;
14 }
15
16 namespace ui {
17 class PlatformWindow;
18 }
19
20 namespace blimp {
21
22 class BlimpCompositor;
23 class RenderWidgetFeature;
24 class TabControlFeature;
25
26 class BlimpDisplayManagerDelegate {
27 public:
28 virtual void OnClosed() = 0;
29 };
30
31 class BlimpDisplayManager : public ui::PlatformWindowDelegate {
32 public:
33 BlimpDisplayManager(const gfx::Size& window_size,
34 BlimpDisplayManagerDelegate* delegate,
35 RenderWidgetFeature* render_widget_feature,
36 TabControlFeature* tab_control_feature);
37 ~BlimpDisplayManager() override;
38
39 // ui::PlatformWindowDelegate:
40 void OnBoundsChanged(const gfx::Rect& new_bounds) override;
41 void OnDamageRect(const gfx::Rect& damaged_region) override;
42 void DispatchEvent(ui::Event* event) override;
43 void OnCloseRequest() override;
44 void OnClosed() override;
45 void OnWindowStateChanged(ui::PlatformWindowState new_state) override;
46 void OnLostCapture() override;
47 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget,
48 float device_pixel_ratio) override;
49 void OnAcceleratedWidgetDestroyed() override;
50 void OnActivationChanged(bool active) override;
51
52 private:
53 float device_pixel_ratio_;
54
55 BlimpDisplayManagerDelegate* delegate_;
56 TabControlFeature* tab_control_feature_;
57
58 scoped_ptr<BlimpCompositor> blimp_compositor_;
59 scoped_ptr<ui::PlatformWindow> platform_window_;
60
61 DISALLOW_COPY_AND_ASSIGN(BlimpDisplayManager);
62 };
63
64 } // namespace blimp
65
66 #endif // BLIMP_CLIENT_LINUX_BLIMP_DISPLAY_MANAGER_H_
OLDNEW
« no previous file with comments | « blimp/client/compositor/blimp_compositor.h ('k') | blimp/client/linux/blimp_display_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698