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

Side by Side Diff: ui/aura/window_tree_host_x11.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_unittest.cc ('k') | ui/aura/window_tree_host_x11.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_X11_H_ 5 #ifndef UI_AURA_WINDOW_TREE_HOST_X11_H_
6 #define UI_AURA_WINDOW_TREE_HOST_X11_H_ 6 #define UI_AURA_WINDOW_TREE_HOST_X11_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 27 matching lines...) Expand all
38 bool CanDispatchEvent(const ui::PlatformEvent& event) override; 38 bool CanDispatchEvent(const ui::PlatformEvent& event) override;
39 uint32_t DispatchEvent(const ui::PlatformEvent& event) override; 39 uint32_t DispatchEvent(const ui::PlatformEvent& event) override;
40 40
41 // WindowTreeHost: 41 // WindowTreeHost:
42 ui::EventSource* GetEventSource() override; 42 ui::EventSource* GetEventSource() override;
43 gfx::AcceleratedWidget GetAcceleratedWidget() override; 43 gfx::AcceleratedWidget GetAcceleratedWidget() override;
44 void ShowImpl() override; 44 void ShowImpl() override;
45 void HideImpl() override; 45 void HideImpl() override;
46 gfx::Rect GetBoundsInPixels() const override; 46 gfx::Rect GetBoundsInPixels() const override;
47 void SetBoundsInPixels(const gfx::Rect& bounds) override; 47 void SetBoundsInPixels(const gfx::Rect& bounds) override;
48 gfx::Point GetLocationOnNativeScreen() const override; 48 gfx::Point GetLocationOnScreenInPixels() const override;
49 void SetCapture() override; 49 void SetCapture() override;
50 void ReleaseCapture() override; 50 void ReleaseCapture() override;
51 void SetCursorNative(gfx::NativeCursor cursor_type) override; 51 void SetCursorNative(gfx::NativeCursor cursor_type) override;
52 void MoveCursorToNative(const gfx::Point& location) override; 52 void MoveCursorToScreenLocationInPixels(
53 const gfx::Point& location_in_pixels) override;
53 void OnCursorVisibilityChangedNative(bool show) override; 54 void OnCursorVisibilityChangedNative(bool show) override;
54 55
55 // Deselects mouse and keyboard events on |xwindow_|. 56 // Deselects mouse and keyboard events on |xwindow_|.
56 void DisableInput(); 57 void DisableInput();
57 58
58 protected: 59 protected:
59 // Called when X Configure Notify event is recevied. 60 // Called when X Configure Notify event is recevied.
60 virtual void OnConfigureNotify(); 61 virtual void OnConfigureNotify();
61 62
62 // Translates the native mouse location into screen coordinates and 63 // Translates the native mouse location into screen coordinates and
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 namespace test { 106 namespace test {
106 107
107 // Set the default value of the override redirect flag used to 108 // Set the default value of the override redirect flag used to
108 // create a X window for WindowTreeHostX11. 109 // create a X window for WindowTreeHostX11.
109 AURA_EXPORT void SetUseOverrideRedirectWindowByDefault(bool override_redirect); 110 AURA_EXPORT void SetUseOverrideRedirectWindowByDefault(bool override_redirect);
110 111
111 } // namespace test 112 } // namespace test
112 } // namespace aura 113 } // namespace aura
113 114
114 #endif // UI_AURA_WINDOW_TREE_HOST_X11_H_ 115 #endif // UI_AURA_WINDOW_TREE_HOST_X11_H_
OLDNEW
« no previous file with comments | « ui/aura/window_tree_host_unittest.cc ('k') | ui/aura/window_tree_host_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698