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

Side by Side Diff: extensions/browser/guest_view/guest_view_base.h

Issue 1095913002: Fix window.open issue in Document mode on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add GuestViewBase delegate method Created 5 years, 7 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 EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_ 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_
6 #define EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_ 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_
7 7
8 #include <queue> 8 #include <queue>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 SkColor color, 337 SkColor color,
338 const std::vector<content::ColorSuggestion>& suggestions) override; 338 const std::vector<content::ColorSuggestion>& suggestions) override;
339 void RunFileChooser(content::WebContents* web_contents, 339 void RunFileChooser(content::WebContents* web_contents,
340 const content::FileChooserParams& params) override; 340 const content::FileChooserParams& params) override;
341 bool ShouldFocusPageAfterCrash() final; 341 bool ShouldFocusPageAfterCrash() final;
342 bool PreHandleGestureEvent(content::WebContents* source, 342 bool PreHandleGestureEvent(content::WebContents* source,
343 const blink::WebGestureEvent& event) override; 343 const blink::WebGestureEvent& event) override;
344 void UpdatePreferredSize(content::WebContents* web_contents, 344 void UpdatePreferredSize(content::WebContents* web_contents,
345 const gfx::Size& pref_size) final; 345 const gfx::Size& pref_size) final;
346 void UpdateTargetURL(content::WebContents* source, const GURL& url) override; 346 void UpdateTargetURL(content::WebContents* source, const GURL& url) override;
347 bool ShouldResumeRequestsForCreatedWindow() override;
347 348
348 void SetGuestZoomLevelToMatchEmbedder(); 349 void SetGuestZoomLevelToMatchEmbedder();
349 350
350 private: 351 private:
351 class OwnerContentsObserver; 352 class OwnerContentsObserver;
352 353
353 class OpenerLifetimeObserver; 354 class OpenerLifetimeObserver;
354 355
355 void SendQueuedEvents(); 356 void SendQueuedEvents();
356 357
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 // This is used to ensure pending tasks will not fire after this object is 449 // This is used to ensure pending tasks will not fire after this object is
449 // destroyed. 450 // destroyed.
450 base::WeakPtrFactory<GuestViewBase> weak_ptr_factory_; 451 base::WeakPtrFactory<GuestViewBase> weak_ptr_factory_;
451 452
452 DISALLOW_COPY_AND_ASSIGN(GuestViewBase); 453 DISALLOW_COPY_AND_ASSIGN(GuestViewBase);
453 }; 454 };
454 455
455 } // namespace extensions 456 } // namespace extensions
456 457
457 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_ 458 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698