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

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

Issue 944763002: Make Page Visibility API work when the browser window is visible or not Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use of SetWindowVisibility message Created 5 years, 8 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
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | ui/aura/window_tree_host.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_H_ 5 #ifndef UI_AURA_WINDOW_TREE_HOST_H_
6 #define UI_AURA_WINDOW_TREE_HOST_H_ 6 #define UI_AURA_WINDOW_TREE_HOST_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/event_types.h" 10 #include "base/event_types.h"
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 void CreateCompositor(gfx::AcceleratedWidget accelerated_widget); 149 void CreateCompositor(gfx::AcceleratedWidget accelerated_widget);
150 150
151 // Returns the location of the RootWindow on native screen. 151 // Returns the location of the RootWindow on native screen.
152 virtual gfx::Point GetLocationOnNativeScreen() const = 0; 152 virtual gfx::Point GetLocationOnNativeScreen() const = 0;
153 153
154 void OnHostMoved(const gfx::Point& new_location); 154 void OnHostMoved(const gfx::Point& new_location);
155 void OnHostResized(const gfx::Size& new_size); 155 void OnHostResized(const gfx::Size& new_size);
156 void OnHostCloseRequested(); 156 void OnHostCloseRequested();
157 void OnHostActivated(); 157 void OnHostActivated();
158 void OnHostLostWindowCapture(); 158 void OnHostLostWindowCapture();
159 void OnHostSetWindowVisibility(bool visible);
159 160
160 // Sets the currently displayed cursor. 161 // Sets the currently displayed cursor.
161 virtual void SetCursorNative(gfx::NativeCursor cursor) = 0; 162 virtual void SetCursorNative(gfx::NativeCursor cursor) = 0;
162 163
163 // Moves the cursor to the specified location relative to the root window. 164 // Moves the cursor to the specified location relative to the root window.
164 virtual void MoveCursorToNative(const gfx::Point& location) = 0; 165 virtual void MoveCursorToNative(const gfx::Point& location) = 0;
165 166
166 // kCalled when the cursor visibility has changed. 167 // kCalled when the cursor visibility has changed.
167 virtual void OnCursorVisibilityChangedNative(bool show) = 0; 168 virtual void OnCursorVisibilityChangedNative(bool show) = 0;
168 169
(...skipping 22 matching lines...) Expand all
191 gfx::Point last_cursor_request_position_in_host_; 192 gfx::Point last_cursor_request_position_in_host_;
192 193
193 scoped_ptr<ui::ViewProp> prop_; 194 scoped_ptr<ui::ViewProp> prop_;
194 195
195 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost); 196 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost);
196 }; 197 };
197 198
198 } // namespace aura 199 } // namespace aura
199 200
200 #endif // UI_AURA_WINDOW_TREE_HOST_H_ 201 #endif // UI_AURA_WINDOW_TREE_HOST_H_
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | ui/aura/window_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698