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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_native_widget_aura.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
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_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "ui/aura/client/focus_change_observer.h" 9 #include "ui/aura/client/focus_change_observer.h"
10 #include "ui/aura/window_delegate.h" 10 #include "ui/aura/window_delegate.h"
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 void OnDragEntered(const ui::DropTargetEvent& event) override; 227 void OnDragEntered(const ui::DropTargetEvent& event) override;
228 int OnDragUpdated(const ui::DropTargetEvent& event) override; 228 int OnDragUpdated(const ui::DropTargetEvent& event) override;
229 void OnDragExited() override; 229 void OnDragExited() override;
230 int OnPerformDrop(const ui::DropTargetEvent& event) override; 230 int OnPerformDrop(const ui::DropTargetEvent& event) override;
231 231
232 // Overridden from aura::WindowTreeHostObserver: 232 // Overridden from aura::WindowTreeHostObserver:
233 void OnHostCloseRequested(const aura::WindowTreeHost* host) override; 233 void OnHostCloseRequested(const aura::WindowTreeHost* host) override;
234 void OnHostResized(const aura::WindowTreeHost* host) override; 234 void OnHostResized(const aura::WindowTreeHost* host) override;
235 void OnHostMoved(const aura::WindowTreeHost* host, 235 void OnHostMoved(const aura::WindowTreeHost* host,
236 const gfx::Point& new_origin) override; 236 const gfx::Point& new_origin) override;
237 void OnHostSetWindowVisibility(const aura::WindowTreeHost* host,
238 bool visible) override {}
237 239
238 private: 240 private:
239 friend class FocusManagerEventHandler; 241 friend class FocusManagerEventHandler;
240 friend class RootWindowDestructionObserver; 242 friend class RootWindowDestructionObserver;
241 243
242 // Installs the input method filter. 244 // Installs the input method filter.
243 void InstallInputMethodEventFilter(); 245 void InstallInputMethodEventFilter();
244 246
245 // To save a clear on platforms where the window is never transparent, the 247 // To save a clear on platforms where the window is never transparent, the
246 // window is only set as transparent when the glass frame is in use. 248 // window is only set as transparent when the glass frame is in use.
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 // The following factory is used for calls to close the NativeWidgetAura 317 // The following factory is used for calls to close the NativeWidgetAura
316 // instance. 318 // instance.
317 base::WeakPtrFactory<DesktopNativeWidgetAura> close_widget_factory_; 319 base::WeakPtrFactory<DesktopNativeWidgetAura> close_widget_factory_;
318 320
319 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura); 321 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura);
320 }; 322 };
321 323
322 } // namespace views 324 } // namespace views
323 325
324 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ 326 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_
OLDNEW
« no previous file with comments | « ui/aura/window_tree_host_observer.h ('k') | ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698