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

Side by Side Diff: ui/ozone/platform/cast/platform_window_cast.h

Issue 2428383007: [Chromecast] Add input support. (Closed)
Patch Set: rebase Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_OZONE_PLATFORM_CAST_PLATFORM_WINDOW_CAST_H_ 5 #ifndef UI_OZONE_PLATFORM_CAST_PLATFORM_WINDOW_CAST_H_
6 #define UI_OZONE_PLATFORM_CAST_PLATFORM_WINDOW_CAST_H_ 6 #define UI_OZONE_PLATFORM_CAST_PLATFORM_WINDOW_CAST_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/events/platform/platform_event_dispatcher.h"
9 #include "ui/gfx/geometry/rect.h" 10 #include "ui/gfx/geometry/rect.h"
10 #include "ui/gfx/native_widget_types.h" 11 #include "ui/gfx/native_widget_types.h"
11 #include "ui/platform_window/platform_window.h" 12 #include "ui/platform_window/platform_window.h"
12 13
13 namespace ui { 14 namespace ui {
14 15
15 class PlatformWindowDelegate; 16 class PlatformWindowDelegate;
16 17
17 class PlatformWindowCast : public PlatformWindow { 18 class PlatformWindowCast : public PlatformWindow,
19 public PlatformEventDispatcher {
18 public: 20 public:
19 PlatformWindowCast(PlatformWindowDelegate* delegate, const gfx::Rect& bounds); 21 PlatformWindowCast(PlatformWindowDelegate* delegate, const gfx::Rect& bounds);
20 ~PlatformWindowCast() override {} 22 ~PlatformWindowCast() override;
21 23
22 // PlatformWindow implementation: 24 // PlatformWindow implementation:
23 gfx::Rect GetBounds() override; 25 gfx::Rect GetBounds() override;
24 void SetBounds(const gfx::Rect& bounds) override; 26 void SetBounds(const gfx::Rect& bounds) override;
25 void SetTitle(const base::string16& title) override; 27 void SetTitle(const base::string16& title) override;
26 void Show() override {} 28 void Show() override {}
27 void Hide() override {} 29 void Hide() override {}
28 void Close() override {} 30 void Close() override {}
29 void SetCapture() override {} 31 void SetCapture() override {}
30 void ReleaseCapture() override {} 32 void ReleaseCapture() override {}
31 void ToggleFullscreen() override {} 33 void ToggleFullscreen() override {}
32 void Maximize() override {} 34 void Maximize() override {}
33 void Minimize() override {} 35 void Minimize() override {}
34 void Restore() override {} 36 void Restore() override {}
35 void SetCursor(PlatformCursor cursor) override {} 37 void SetCursor(PlatformCursor cursor) override {}
36 void MoveCursorTo(const gfx::Point& location) override {} 38 void MoveCursorTo(const gfx::Point& location) override {}
37 void ConfineCursorToBounds(const gfx::Rect& bounds) override {} 39 void ConfineCursorToBounds(const gfx::Rect& bounds) override {}
38 PlatformImeController* GetPlatformImeController() override; 40 PlatformImeController* GetPlatformImeController() override;
39 41
42 // PlatformEventDispatcher implementation:
43 bool CanDispatchEvent(const PlatformEvent& event) override;
44 uint32_t DispatchEvent(const PlatformEvent& event) override;
45
40 private: 46 private:
41 PlatformWindowDelegate* delegate_; 47 PlatformWindowDelegate* delegate_;
42 gfx::Rect bounds_; 48 gfx::Rect bounds_;
43 gfx::AcceleratedWidget widget_; 49 gfx::AcceleratedWidget widget_;
44 50
45 DISALLOW_COPY_AND_ASSIGN(PlatformWindowCast); 51 DISALLOW_COPY_AND_ASSIGN(PlatformWindowCast);
46 }; 52 };
47 53
48 } // namespace ui 54 } // namespace ui
49 55
50 #endif // UI_OZONE_PLATFORM_CAST_PLATFORM_WINDOW_CAST_H_ 56 #endif // UI_OZONE_PLATFORM_CAST_PLATFORM_WINDOW_CAST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698