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

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

Issue 1685213002: Propagate window coordinates to out-of-process iframes renderers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sendscreenrects
Patch Set: addressing comments Created 4 years, 9 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_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 <map> 11 #include <map>
11 #include <set> 12 #include <set>
12 #include <string> 13 #include <string>
13 14
14 #include "base/compiler_specific.h" 15 #include "base/compiler_specific.h"
15 #include "base/containers/scoped_ptr_hash_map.h" 16 #include "base/containers/scoped_ptr_hash_map.h"
16 #include "base/gtest_prod_util.h" 17 #include "base/gtest_prod_util.h"
17 #include "base/macros.h" 18 #include "base/macros.h"
18 #include "base/memory/scoped_ptr.h" 19 #include "base/memory/scoped_ptr.h"
19 #include "base/observer_list.h" 20 #include "base/observer_list.h"
(...skipping 950 matching lines...) Expand 10 before | Expand all | Expand 10 after
970 971
971 // Finds the new RenderWidgetHost and returns it. Note that this can only be 972 // Finds the new RenderWidgetHost and returns it. Note that this can only be
972 // called once as this call also removes it from the internal map. 973 // called once as this call also removes it from the internal map.
973 RenderWidgetHostView* GetCreatedWidget(int route_id); 974 RenderWidgetHostView* GetCreatedWidget(int route_id);
974 975
975 // Finds the new WebContentsImpl by route_id, initializes it for 976 // Finds the new WebContentsImpl by route_id, initializes it for
976 // renderer-initiated creation, and returns it. Note that this can only be 977 // renderer-initiated creation, and returns it. Note that this can only be
977 // called once as this call also removes it from the internal map. 978 // called once as this call also removes it from the internal map.
978 WebContentsImpl* GetCreatedWindow(int route_id); 979 WebContentsImpl* GetCreatedWindow(int route_id);
979 980
981 // Sends a Page message IPC.
982 void SendPageMessage(IPC::Message* msg);
983
980 // Tracking loading progress ------------------------------------------------- 984 // Tracking loading progress -------------------------------------------------
981 985
982 // Resets the tracking state of the current load progress. 986 // Resets the tracking state of the current load progress.
983 void ResetLoadProgressState(); 987 void ResetLoadProgressState();
984 988
985 // Notifies the delegate that the load progress was updated. 989 // Notifies the delegate that the load progress was updated.
986 void SendChangeLoadProgress(); 990 void SendChangeLoadProgress();
987 991
988 // Notifies the delegate of a change in loading state. 992 // Notifies the delegate of a change in loading state.
989 // |details| is used to provide details on the load that just finished 993 // |details| is used to provide details on the load that just finished
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
1343 // Adds/removes a callback called on creation of each new WebContents. 1347 // Adds/removes a callback called on creation of each new WebContents.
1344 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1348 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1345 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1349 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1346 1350
1347 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1351 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1348 }; 1352 };
1349 1353
1350 } // namespace content 1354 } // namespace content
1351 1355
1352 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1356 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698