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

Side by Side Diff: content/browser/frame_host/render_widget_host_view_child_frame.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "content/browser/renderer_host/render_widget_host_view_base.h" 9 #include "content/browser/renderer_host/render_widget_host_view_base.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 28 matching lines...) Expand all
39 // RenderWidgetHostView implementation. 39 // RenderWidgetHostView implementation.
40 void InitAsChild(gfx::NativeView parent_view) override; 40 void InitAsChild(gfx::NativeView parent_view) override;
41 RenderWidgetHost* GetRenderWidgetHost() const override; 41 RenderWidgetHost* GetRenderWidgetHost() const override;
42 void SetSize(const gfx::Size& size) override; 42 void SetSize(const gfx::Size& size) override;
43 void SetBounds(const gfx::Rect& rect) override; 43 void SetBounds(const gfx::Rect& rect) override;
44 void Focus() override; 44 void Focus() override;
45 bool HasFocus() const override; 45 bool HasFocus() const override;
46 bool IsSurfaceAvailableForCopy() const override; 46 bool IsSurfaceAvailableForCopy() const override;
47 void Show() override; 47 void Show() override;
48 void Hide() override; 48 void Hide() override;
49 void Hide(bool content_visible) override;
49 bool IsShowing() override; 50 bool IsShowing() override;
50 gfx::Rect GetViewBounds() const override; 51 gfx::Rect GetViewBounds() const override;
51 gfx::Vector2dF GetLastScrollOffset() const override; 52 gfx::Vector2dF GetLastScrollOffset() const override;
52 gfx::NativeView GetNativeView() const override; 53 gfx::NativeView GetNativeView() const override;
53 gfx::NativeViewId GetNativeViewId() const override; 54 gfx::NativeViewId GetNativeViewId() const override;
54 gfx::NativeViewAccessible GetNativeViewAccessible() override; 55 gfx::NativeViewAccessible GetNativeViewAccessible() override;
55 void SetBackgroundColor(SkColor color) override; 56 void SetBackgroundColor(SkColor color) override;
56 gfx::Size GetPhysicalBackingSize() const override; 57 gfx::Size GetPhysicalBackingSize() const override;
57 58
58 // RenderWidgetHostViewBase implementation. 59 // RenderWidgetHostViewBase implementation.
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 // sent through it are routed to the embedding renderer process. 149 // sent through it are routed to the embedding renderer process.
149 CrossProcessFrameConnector* frame_connector_; 150 CrossProcessFrameConnector* frame_connector_;
150 151
151 private: 152 private:
152 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); 153 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame);
153 }; 154 };
154 155
155 } // namespace content 156 } // namespace content
156 157
157 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ 158 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698