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

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

Issue 2679513002: Track the original opener of a webcontents so we can rely on it for popups (Closed)
Patch Set: Created 3 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_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 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 bool GetClosedByUserGesture() const override; 383 bool GetClosedByUserGesture() const override;
384 void ViewSource() override; 384 void ViewSource() override;
385 void ViewFrameSource(const GURL& url, const PageState& page_state) override; 385 void ViewFrameSource(const GURL& url, const PageState& page_state) override;
386 int GetMinimumZoomPercent() const override; 386 int GetMinimumZoomPercent() const override;
387 int GetMaximumZoomPercent() const override; 387 int GetMaximumZoomPercent() const override;
388 void SetPageScale(float page_scale_factor) override; 388 void SetPageScale(float page_scale_factor) override;
389 gfx::Size GetPreferredSize() const override; 389 gfx::Size GetPreferredSize() const override;
390 bool GotResponseToLockMouseRequest(bool allowed) override; 390 bool GotResponseToLockMouseRequest(bool allowed) override;
391 bool HasOpener() const override; 391 bool HasOpener() const override;
392 WebContentsImpl* GetOpener() const override; 392 WebContentsImpl* GetOpener() const override;
393 bool HasOriginalOpener() const override;
394 WebContents* GetOriginalOpener() const override;
393 void DidChooseColorInColorChooser(SkColor color) override; 395 void DidChooseColorInColorChooser(SkColor color) override;
394 void DidEndColorChooser() override; 396 void DidEndColorChooser() override;
395 int DownloadImage(const GURL& url, 397 int DownloadImage(const GURL& url,
396 bool is_favicon, 398 bool is_favicon,
397 uint32_t max_bitmap_size, 399 uint32_t max_bitmap_size,
398 bool bypass_cache, 400 bool bypass_cache,
399 const ImageDownloadCallback& callback) override; 401 const ImageDownloadCallback& callback) override;
400 bool IsSubframe() const override; 402 bool IsSubframe() const override;
401 void Find(int request_id, 403 void Find(int request_id,
402 const base::string16& search_text, 404 const base::string16& search_text,
(...skipping 1111 matching lines...) Expand 10 before | Expand all | Expand 10 after
1514 // Adds/removes a callback called on creation of each new WebContents. 1516 // Adds/removes a callback called on creation of each new WebContents.
1515 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1517 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1516 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1518 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1517 1519
1518 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1520 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1519 }; 1521 };
1520 1522
1521 } // namespace content 1523 } // namespace content
1522 1524
1523 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1525 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_manager_browsertest.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