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

Side by Side Diff: ui/aura/window_tree_host_platform.h

Issue 1410153003: Browser frame for Aura Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed unrelated changes + formatting. Created 5 years, 1 month 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_AURA_WINDOW_TREE_HOST_PLATFORM_H_ 5 #ifndef UI_AURA_WINDOW_TREE_HOST_PLATFORM_H_
6 #define UI_AURA_WINDOW_TREE_HOST_PLATFORM_H_ 6 #define UI_AURA_WINDOW_TREE_HOST_PLATFORM_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "ui/aura/aura_export.h" 10 #include "ui/aura/aura_export.h"
11 #include "ui/aura/window_tree_host.h" 11 #include "ui/aura/window_tree_host.h"
12 #include "ui/gfx/native_widget_types.h" 12 #include "ui/gfx/native_widget_types.h"
13 #include "ui/platform_window/platform_window.h" 13 #include "ui/platform_window/platform_window.h"
14 #include "ui/platform_window/platform_window_delegate.h" 14 #include "ui/platform_window/platform_window_delegate.h"
15 15
16 namespace aura { 16 namespace aura {
17 17
18 // The unified WindowTreeHost implementation for platforms 18 // The unified WindowTreeHost implementation for platforms
19 // that implement PlatformWindow. 19 // that implement PlatformWindow.
20 class AURA_EXPORT WindowTreeHostPlatform 20 class AURA_EXPORT WindowTreeHostPlatform
21 : public WindowTreeHost, 21 : public WindowTreeHost,
22 public NON_EXPORTED_BASE(ui::PlatformWindowDelegate) { 22 public NON_EXPORTED_BASE(ui::PlatformWindowDelegate) {
23 public: 23 public:
24 explicit WindowTreeHostPlatform(const gfx::Rect& bounds); 24 explicit WindowTreeHostPlatform(const gfx::Rect& bounds);
25 ~WindowTreeHostPlatform() override; 25 ~WindowTreeHostPlatform() override;
26 26
27 static WindowTreeHostPlatform* GetHost();
mfomitchev 2015/10/29 15:53:44 biao is already in the process of landing this spe
bshe 2015/10/30 16:29:10 looks like we dont want to add the GetHost functio
28
27 // WindowTreeHost: 29 // WindowTreeHost:
28 ui::EventSource* GetEventSource() override; 30 ui::EventSource* GetEventSource() override;
29 gfx::AcceleratedWidget GetAcceleratedWidget() override; 31 gfx::AcceleratedWidget GetAcceleratedWidget() override;
30 void ShowImpl() override; 32 void ShowImpl() override;
31 void HideImpl() override; 33 void HideImpl() override;
32 gfx::Rect GetBounds() const override; 34 gfx::Rect GetBounds() const override;
33 void SetBounds(const gfx::Rect& bounds) override; 35 void SetBounds(const gfx::Rect& bounds) override;
34 gfx::Point GetLocationOnNativeScreen() const override; 36 gfx::Point GetLocationOnNativeScreen() const override;
35 void SetCapture() override; 37 void SetCapture() override;
36 void ReleaseCapture() override; 38 void ReleaseCapture() override;
(...skipping 23 matching lines...) Expand all
60 gfx::NativeCursor current_cursor_; 62 gfx::NativeCursor current_cursor_;
61 bool has_capture_; 63 bool has_capture_;
62 gfx::Rect bounds_; 64 gfx::Rect bounds_;
63 65
64 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostPlatform); 66 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostPlatform);
65 }; 67 };
66 68
67 } // namespace aura 69 } // namespace aura
68 70
69 #endif // UI_AURA_WINDOW_TREE_HOST_PLATFORM_H_ 71 #endif // UI_AURA_WINDOW_TREE_HOST_PLATFORM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698