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

Side by Side Diff: ui/views/controls/native/native_view_host_aura.h

Issue 286943005: Reducing CPU cycles of hidden/minimized browser windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_CONTROLS_NATIVE_NATIVE_VIEW_HOST_AURA_H_ 5 #ifndef UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_AURA_H_
6 #define UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_AURA_H_ 6 #define UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_AURA_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "ui/aura/window_observer.h" 10 #include "ui/aura/window_observer.h"
(...skipping 21 matching lines...) Expand all
32 virtual void UninstallClip() OVERRIDE; 32 virtual void UninstallClip() OVERRIDE;
33 virtual void ShowWidget(int x, int y, int w, int h) OVERRIDE; 33 virtual void ShowWidget(int x, int y, int w, int h) OVERRIDE;
34 virtual void HideWidget() OVERRIDE; 34 virtual void HideWidget() OVERRIDE;
35 virtual void SetFocus() OVERRIDE; 35 virtual void SetFocus() OVERRIDE;
36 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; 36 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE;
37 virtual gfx::NativeCursor GetCursor(int x, int y) OVERRIDE; 37 virtual gfx::NativeCursor GetCursor(int x, int y) OVERRIDE;
38 38
39 private: 39 private:
40 // Overridden from aura::WindowObserver: 40 // Overridden from aura::WindowObserver:
41 virtual void OnWindowDestroyed(aura::Window* window) OVERRIDE; 41 virtual void OnWindowDestroyed(aura::Window* window) OVERRIDE;
42 virtual void OnWindowVisibilityChanged(aura::Window* window,
43 bool is_visible) OVERRIDE;
42 44
43 // Our associated NativeViewHost. 45 // Our associated NativeViewHost.
44 NativeViewHost* host_; 46 NativeViewHost* host_;
45 47
46 // Have we installed a clip region? 48 // Have we installed a clip region?
47 bool installed_clip_; 49 bool installed_clip_;
48 50
49 DISALLOW_COPY_AND_ASSIGN(NativeViewHostAura); 51 DISALLOW_COPY_AND_ASSIGN(NativeViewHostAura);
50 }; 52 };
51 53
52 } // namespace views 54 } // namespace views
53 55
54 #endif // UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_AURA_H_ 56 #endif // UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_AURA_H_
OLDNEW
« no previous file with comments | « no previous file | ui/views/controls/native/native_view_host_aura.cc » ('j') | ui/views/controls/native/native_view_host_aura.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698