OLD | NEW |
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_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <functional> | 10 #include <functional> |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 const GURL& GetLastCommittedURL() const override; | 276 const GURL& GetLastCommittedURL() const override; |
277 RenderProcessHost* GetRenderProcessHost() const override; | 277 RenderProcessHost* GetRenderProcessHost() const override; |
278 RenderFrameHostImpl* GetMainFrame() override; | 278 RenderFrameHostImpl* GetMainFrame() override; |
279 RenderFrameHostImpl* GetFocusedFrame() override; | 279 RenderFrameHostImpl* GetFocusedFrame() override; |
280 RenderFrameHostImpl* FindFrameByFrameTreeNodeId( | 280 RenderFrameHostImpl* FindFrameByFrameTreeNodeId( |
281 int frame_tree_node_id) override; | 281 int frame_tree_node_id) override; |
282 void ForEachFrame( | 282 void ForEachFrame( |
283 const base::Callback<void(RenderFrameHost*)>& on_frame) override; | 283 const base::Callback<void(RenderFrameHost*)>& on_frame) override; |
284 std::vector<RenderFrameHost*> GetAllFrames() override; | 284 std::vector<RenderFrameHost*> GetAllFrames() override; |
285 int SendToAllFrames(IPC::Message* message) override; | 285 int SendToAllFrames(IPC::Message* message) override; |
| 286 int SendToAllViews(IPC::Message* message) override; |
286 RenderViewHostImpl* GetRenderViewHost() const override; | 287 RenderViewHostImpl* GetRenderViewHost() const override; |
287 int GetRoutingID() const override; | 288 int GetRoutingID() const override; |
288 RenderWidgetHostView* GetRenderWidgetHostView() const override; | 289 RenderWidgetHostView* GetRenderWidgetHostView() const override; |
289 RenderWidgetHostView* GetTopLevelRenderWidgetHostView() override; | 290 RenderWidgetHostView* GetTopLevelRenderWidgetHostView() override; |
290 void ClosePage() override; | 291 void ClosePage() override; |
291 RenderWidgetHostView* GetFullscreenRenderWidgetHostView() const override; | 292 RenderWidgetHostView* GetFullscreenRenderWidgetHostView() const override; |
292 SkColor GetThemeColor() const override; | 293 SkColor GetThemeColor() const override; |
293 WebUI* CreateSubframeWebUI(const GURL& url, | 294 WebUI* CreateSubframeWebUI(const GURL& url, |
294 const std::string& frame_name) override; | 295 const std::string& frame_name) override; |
295 WebUI* GetWebUI() const override; | 296 WebUI* GetWebUI() const override; |
(...skipping 24 matching lines...) Expand all Loading... |
320 int GetCapturerCount() const override; | 321 int GetCapturerCount() const override; |
321 bool IsAudioMuted() const override; | 322 bool IsAudioMuted() const override; |
322 void SetAudioMuted(bool mute) override; | 323 void SetAudioMuted(bool mute) override; |
323 bool IsConnectedToBluetoothDevice() const override; | 324 bool IsConnectedToBluetoothDevice() const override; |
324 bool IsCrashed() const override; | 325 bool IsCrashed() const override; |
325 void SetIsCrashed(base::TerminationStatus status, int error_code) override; | 326 void SetIsCrashed(base::TerminationStatus status, int error_code) override; |
326 base::TerminationStatus GetCrashedStatus() const override; | 327 base::TerminationStatus GetCrashedStatus() const override; |
327 int GetCrashedErrorCode() const override; | 328 int GetCrashedErrorCode() const override; |
328 bool IsBeingDestroyed() const override; | 329 bool IsBeingDestroyed() const override; |
329 void NotifyNavigationStateChanged(InvalidateTypes changed_flags) override; | 330 void NotifyNavigationStateChanged(InvalidateTypes changed_flags) override; |
| 331 void OnAudioStateChanged(bool is_audio_playing) override; |
330 base::TimeTicks GetLastActiveTime() const override; | 332 base::TimeTicks GetLastActiveTime() const override; |
331 void SetLastActiveTime(base::TimeTicks last_active_time) override; | 333 void SetLastActiveTime(base::TimeTicks last_active_time) override; |
332 void WasShown() override; | 334 void WasShown() override; |
333 void WasHidden() override; | 335 void WasHidden() override; |
334 bool NeedToFireBeforeUnload() override; | 336 bool NeedToFireBeforeUnload() override; |
335 void DispatchBeforeUnload() override; | 337 void DispatchBeforeUnload() override; |
336 void AttachToOuterWebContentsFrame( | 338 void AttachToOuterWebContentsFrame( |
337 WebContents* outer_web_contents, | 339 WebContents* outer_web_contents, |
338 RenderFrameHost* outer_contents_frame) override; | 340 RenderFrameHost* outer_contents_frame) override; |
339 void Stop() override; | 341 void Stop() override; |
(...skipping 1145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1485 // Adds/removes a callback called on creation of each new WebContents. | 1487 // Adds/removes a callback called on creation of each new WebContents. |
1486 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1488 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
1487 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1489 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
1488 | 1490 |
1489 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1491 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
1490 }; | 1492 }; |
1491 | 1493 |
1492 } // namespace content | 1494 } // namespace content |
1493 | 1495 |
1494 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1496 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |