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

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

Issue 880983006: GuestView: Show status bubbles in browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Only call ForEachGuest if a GuestViewManager exists Created 5 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 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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 ~GuestViewBase() override; 294 ~GuestViewBase() override;
295 295
296 // WebContentsObserver implementation. 296 // WebContentsObserver implementation.
297 void DidStopLoading(content::RenderViewHost* render_view_host) final; 297 void DidStopLoading(content::RenderViewHost* render_view_host) final;
298 void RenderViewReady() final; 298 void RenderViewReady() final;
299 void WebContentsDestroyed() final; 299 void WebContentsDestroyed() final;
300 300
301 // WebContentsDelegate implementation. 301 // WebContentsDelegate implementation.
302 void ActivateContents(content::WebContents* contents) final; 302 void ActivateContents(content::WebContents* contents) final;
303 void DeactivateContents(content::WebContents* contents) final; 303 void DeactivateContents(content::WebContents* contents) final;
304 void ContentsMouseEvent(content::WebContents* source,
305 const gfx::Point& location,
306 bool motion) override;
304 void ContentsZoomChange(bool zoom_in) override; 307 void ContentsZoomChange(bool zoom_in) override;
305 void HandleKeyboardEvent( 308 void HandleKeyboardEvent(
306 content::WebContents* source, 309 content::WebContents* source,
307 const content::NativeWebKeyboardEvent& event) override; 310 const content::NativeWebKeyboardEvent& event) override;
311 void LoadingStateChanged(content::WebContents* source,
312 bool to_different_document) final;
308 void RunFileChooser(content::WebContents* web_contents, 313 void RunFileChooser(content::WebContents* web_contents,
309 const content::FileChooserParams& params) override; 314 const content::FileChooserParams& params) override;
310 bool ShouldFocusPageAfterCrash() final; 315 bool ShouldFocusPageAfterCrash() final;
311 bool PreHandleGestureEvent(content::WebContents* source, 316 bool PreHandleGestureEvent(content::WebContents* source,
312 const blink::WebGestureEvent& event) final; 317 const blink::WebGestureEvent& event) final;
313 void UpdatePreferredSize(content::WebContents* web_contents, 318 void UpdatePreferredSize(content::WebContents* web_contents,
314 const gfx::Size& pref_size) final; 319 const gfx::Size& pref_size) final;
320 void UpdateTargetURL(content::WebContents* source, const GURL& url) override;
315 321
316 private: 322 private:
317 class OwnerLifetimeObserver; 323 class OwnerLifetimeObserver;
318 324
319 class OpenerLifetimeObserver; 325 class OpenerLifetimeObserver;
320 326
321 void DispatchEvent(Event* event, int instance_id); 327 void DispatchEvent(Event* event, int instance_id);
322 328
323 void SendQueuedEvents(); 329 void SendQueuedEvents();
324 330
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 // This is used to ensure pending tasks will not fire after this object is 417 // This is used to ensure pending tasks will not fire after this object is
412 // destroyed. 418 // destroyed.
413 base::WeakPtrFactory<GuestViewBase> weak_ptr_factory_; 419 base::WeakPtrFactory<GuestViewBase> weak_ptr_factory_;
414 420
415 DISALLOW_COPY_AND_ASSIGN(GuestViewBase); 421 DISALLOW_COPY_AND_ASSIGN(GuestViewBase);
416 }; 422 };
417 423
418 } // namespace extensions 424 } // namespace extensions
419 425
420 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_ 426 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/tab_contents/core_tab_helper.cc ('k') | extensions/browser/guest_view/guest_view_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698