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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_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: remove the VisibilityNotify event handler Created 5 years, 10 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 CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 void SetBounds(const gfx::Rect& rect) override; 148 void SetBounds(const gfx::Rect& rect) override;
149 gfx::Vector2dF GetLastScrollOffset() const override; 149 gfx::Vector2dF GetLastScrollOffset() const override;
150 gfx::NativeView GetNativeView() const override; 150 gfx::NativeView GetNativeView() const override;
151 gfx::NativeViewId GetNativeViewId() const override; 151 gfx::NativeViewId GetNativeViewId() const override;
152 gfx::NativeViewAccessible GetNativeViewAccessible() override; 152 gfx::NativeViewAccessible GetNativeViewAccessible() override;
153 ui::TextInputClient* GetTextInputClient() override; 153 ui::TextInputClient* GetTextInputClient() override;
154 bool HasFocus() const override; 154 bool HasFocus() const override;
155 bool IsSurfaceAvailableForCopy() const override; 155 bool IsSurfaceAvailableForCopy() const override;
156 void Show() override; 156 void Show() override;
157 void Hide() override; 157 void Hide() override;
158 void Hide(bool content_visible) override;
158 bool IsShowing() override; 159 bool IsShowing() override;
159 gfx::Rect GetViewBounds() const override; 160 gfx::Rect GetViewBounds() const override;
160 void SetBackgroundColor(SkColor color) override; 161 void SetBackgroundColor(SkColor color) override;
161 gfx::Size GetVisibleViewportSize() const override; 162 gfx::Size GetVisibleViewportSize() const override;
162 void SetInsets(const gfx::Insets& insets) override; 163 void SetInsets(const gfx::Insets& insets) override;
163 164
164 // Overridden from RenderWidgetHostViewBase: 165 // Overridden from RenderWidgetHostViewBase:
165 void InitAsPopup(RenderWidgetHostView* parent_host_view, 166 void InitAsPopup(RenderWidgetHostView* parent_host_view,
166 const gfx::Rect& pos) override; 167 const gfx::Rect& pos) override;
167 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; 168 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override;
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
650 // compositing surface and showing the disambiguation popup. 651 // compositing surface and showing the disambiguation popup.
651 gfx::Vector2dF disambiguation_scroll_offset_; 652 gfx::Vector2dF disambiguation_scroll_offset_;
652 653
653 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; 654 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_;
654 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); 655 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura);
655 }; 656 };
656 657
657 } // namespace content 658 } // namespace content
658 659
659 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 660 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698