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

Side by Side Diff: headless/lib/browser/headless_window_tree_host.h

Issue 1991953002: Implement a runtime headless mode for Linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years 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
(Empty)
1 // Copyright 2016 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 HEADLESS_LIB_BROWSER_HEADLESS_WINDOW_TREE_HOST_H_
6 #define HEADLESS_LIB_BROWSER_HEADLESS_WINDOW_TREE_HOST_H_
7
8 #include "base/macros.h"
9 #include "ui/aura/window_tree_host.h"
10 #include "ui/events/platform/platform_event_dispatcher.h"
11 #include "ui/gfx/geometry/rect.h"
12
13 namespace headless {
14
15 class HeadlessWindowTreeHost : public aura::WindowTreeHost,
16 public ui::PlatformEventDispatcher {
17 public:
18 explicit HeadlessWindowTreeHost(const gfx::Rect& bounds);
19 ~HeadlessWindowTreeHost() override;
20
21 // ui::PlatformEventDispatcher:
22 bool CanDispatchEvent(const ui::PlatformEvent& event) override;
23 uint32_t DispatchEvent(const ui::PlatformEvent& event) override;
24
25 // WindowTreeHost:
26 ui::EventSource* GetEventSource() override;
27 gfx::AcceleratedWidget GetAcceleratedWidget() override;
28 void ShowImpl() override;
29 void HideImpl() override;
30 gfx::Rect GetBoundsInPixels() const override;
31 void SetBoundsInPixels(const gfx::Rect& bounds) override;
32 gfx::Point GetLocationOnScreenInPixels() const override;
33 void SetCapture() override;
34 void ReleaseCapture() override;
35 void SetCursorNative(gfx::NativeCursor cursor_type) override;
36 void MoveCursorToScreenLocationInPixels(const gfx::Point& location) override;
37 void OnCursorVisibilityChangedNative(bool show) override;
38 gfx::ICCProfile GetICCProfileForCurrentDisplay() override;
39
40 private:
41 gfx::Rect bounds_;
42
43 DISALLOW_COPY_AND_ASSIGN(HeadlessWindowTreeHost);
44 };
45
46 } // namespace headless
47
48 #endif // HEADLESS_LIB_BROWSER_HEADLESS_WINDOW_TREE_HOST_H_
OLDNEW
« no previous file with comments | « headless/lib/browser/headless_web_contents_impl.cc ('k') | headless/lib/browser/headless_window_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698