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

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 1457203002: Make WebContentsImpl aware of all of its RWHs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync @tott Created 5 years 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_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 <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 void RequestOpenURL(RenderFrameHostImpl* render_frame_host, 553 void RequestOpenURL(RenderFrameHostImpl* render_frame_host,
554 const OpenURLParams& params) override; 554 const OpenURLParams& params) override;
555 bool ShouldPreserveAbortedURLs() override; 555 bool ShouldPreserveAbortedURLs() override;
556 void DidStartLoading(FrameTreeNode* frame_tree_node, 556 void DidStartLoading(FrameTreeNode* frame_tree_node,
557 bool to_different_document) override; 557 bool to_different_document) override;
558 void DidStopLoading() override; 558 void DidStopLoading() override;
559 void DidChangeLoadProgress() override; 559 void DidChangeLoadProgress() override;
560 560
561 // RenderWidgetHostDelegate -------------------------------------------------- 561 // RenderWidgetHostDelegate --------------------------------------------------
562 562
563 void RenderWidgetCreated(RenderWidgetHostImpl* render_widget_host) override;
563 void RenderWidgetDeleted(RenderWidgetHostImpl* render_widget_host) override; 564 void RenderWidgetDeleted(RenderWidgetHostImpl* render_widget_host) override;
564 void RenderWidgetGotFocus(RenderWidgetHostImpl* render_widget_host) override; 565 void RenderWidgetGotFocus(RenderWidgetHostImpl* render_widget_host) override;
565 void RenderWidgetWasResized(RenderWidgetHostImpl* render_widget_host, 566 void RenderWidgetWasResized(RenderWidgetHostImpl* render_widget_host,
566 bool width_changed) override; 567 bool width_changed) override;
567 void ResizeDueToAutoResize(RenderWidgetHostImpl* render_widget_host, 568 void ResizeDueToAutoResize(RenderWidgetHostImpl* render_widget_host,
568 const gfx::Size& new_size) override; 569 const gfx::Size& new_size) override;
569 void ScreenInfoChanged() override; 570 void ScreenInfoChanged() override;
570 bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, 571 bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event,
571 bool* is_keyboard_shortcut) override; 572 bool* is_keyboard_shortcut) override;
572 void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) override; 573 void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) override;
(...skipping 777 matching lines...) Expand 10 before | Expand all | Expand 10 after
1350 // Adds/removes a callback called on creation of each new WebContents. 1351 // Adds/removes a callback called on creation of each new WebContents.
1351 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1352 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1352 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1353 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1353 1354
1354 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1355 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1355 }; 1356 };
1356 1357
1357 } // namespace content 1358 } // namespace content
1358 1359
1359 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1360 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698