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 2525113002: Rename WindowTreeHost functions to indicate pixels/dips. (Closed)
Patch Set: win 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
« no previous file with comments | « ui/aura/window_tree_host_observer.h ('k') | ui/aura/window_tree_host_platform.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <memory> 8 #include <memory>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 17 matching lines...) Expand all
28 explicit WindowTreeHostPlatform(const gfx::Rect& bounds); 28 explicit WindowTreeHostPlatform(const gfx::Rect& bounds);
29 ~WindowTreeHostPlatform() override; 29 ~WindowTreeHostPlatform() override;
30 30
31 // WindowTreeHost: 31 // WindowTreeHost:
32 ui::EventSource* GetEventSource() override; 32 ui::EventSource* GetEventSource() override;
33 gfx::AcceleratedWidget GetAcceleratedWidget() override; 33 gfx::AcceleratedWidget GetAcceleratedWidget() override;
34 void ShowImpl() override; 34 void ShowImpl() override;
35 void HideImpl() override; 35 void HideImpl() override;
36 gfx::Rect GetBoundsInPixels() const override; 36 gfx::Rect GetBoundsInPixels() const override;
37 void SetBoundsInPixels(const gfx::Rect& bounds) override; 37 void SetBoundsInPixels(const gfx::Rect& bounds) override;
38 gfx::Point GetLocationOnNativeScreen() const override; 38 gfx::Point GetLocationOnScreenInPixels() const override;
39 void SetCapture() override; 39 void SetCapture() override;
40 void ReleaseCapture() override; 40 void ReleaseCapture() override;
41 void SetCursorNative(gfx::NativeCursor cursor) override; 41 void SetCursorNative(gfx::NativeCursor cursor) override;
42 void MoveCursorToNative(const gfx::Point& location) override; 42 void MoveCursorToScreenLocationInPixels(
43 const gfx::Point& location_in_pixels) override;
43 void OnCursorVisibilityChangedNative(bool show) override; 44 void OnCursorVisibilityChangedNative(bool show) override;
44 45
45 protected: 46 protected:
46 // NOTE: neither of these calls CreateCompositor(); subclasses must call 47 // NOTE: neither of these calls CreateCompositor(); subclasses must call
47 // CreateCompositor() at the appropriate time. 48 // CreateCompositor() at the appropriate time.
48 WindowTreeHostPlatform(); 49 WindowTreeHostPlatform();
49 explicit WindowTreeHostPlatform(std::unique_ptr<WindowPort> window_port); 50 explicit WindowTreeHostPlatform(std::unique_ptr<WindowPort> window_port);
50 51
51 void SetPlatformWindow(std::unique_ptr<ui::PlatformWindow> window); 52 void SetPlatformWindow(std::unique_ptr<ui::PlatformWindow> window);
52 ui::PlatformWindow* platform_window() { return window_.get(); } 53 ui::PlatformWindow* platform_window() { return window_.get(); }
(...skipping 16 matching lines...) Expand all
69 std::unique_ptr<ui::PlatformWindow> window_; 70 std::unique_ptr<ui::PlatformWindow> window_;
70 gfx::NativeCursor current_cursor_; 71 gfx::NativeCursor current_cursor_;
71 gfx::Rect bounds_; 72 gfx::Rect bounds_;
72 73
73 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostPlatform); 74 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostPlatform);
74 }; 75 };
75 76
76 } // namespace aura 77 } // namespace aura
77 78
78 #endif // UI_AURA_WINDOW_TREE_HOST_PLATFORM_H_ 79 #endif // UI_AURA_WINDOW_TREE_HOST_PLATFORM_H_
OLDNEW
« no previous file with comments | « ui/aura/window_tree_host_observer.h ('k') | ui/aura/window_tree_host_platform.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698