OLD | NEW |
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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 | 266 |
267 static void RegisterGuestViewTypes(); | 267 static void RegisterGuestViewTypes(); |
268 | 268 |
269 // WebContentsObserver implementation. | 269 // WebContentsObserver implementation. |
270 virtual void DidStopLoading( | 270 virtual void DidStopLoading( |
271 content::RenderViewHost* render_view_host) OVERRIDE FINAL; | 271 content::RenderViewHost* render_view_host) OVERRIDE FINAL; |
272 virtual void RenderViewReady() OVERRIDE FINAL; | 272 virtual void RenderViewReady() OVERRIDE FINAL; |
273 virtual void WebContentsDestroyed() OVERRIDE FINAL; | 273 virtual void WebContentsDestroyed() OVERRIDE FINAL; |
274 | 274 |
275 // WebContentsDelegate implementation. | 275 // WebContentsDelegate implementation. |
| 276 virtual void ActivateContents(content::WebContents* contents) OVERRIDE FINAL; |
| 277 virtual void DeactivateContents( |
| 278 content::WebContents* contents) OVERRIDE FINAL; |
276 virtual void RunFileChooser( | 279 virtual void RunFileChooser( |
277 content::WebContents* web_contents, | 280 content::WebContents* web_contents, |
278 const content::FileChooserParams& params) OVERRIDE; | 281 const content::FileChooserParams& params) OVERRIDE; |
279 virtual bool ShouldFocusPageAfterCrash() OVERRIDE FINAL; | 282 virtual bool ShouldFocusPageAfterCrash() OVERRIDE FINAL; |
280 virtual bool PreHandleGestureEvent( | 283 virtual bool PreHandleGestureEvent( |
281 content::WebContents* source, | 284 content::WebContents* source, |
282 const blink::WebGestureEvent& event) OVERRIDE FINAL; | 285 const blink::WebGestureEvent& event) OVERRIDE FINAL; |
283 | 286 |
284 content::WebContents* embedder_web_contents_; | 287 content::WebContents* embedder_web_contents_; |
285 std::string embedder_extension_id_; | 288 std::string embedder_extension_id_; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 // This is used to ensure pending tasks will not fire after this object is | 333 // This is used to ensure pending tasks will not fire after this object is |
331 // destroyed. | 334 // destroyed. |
332 base::WeakPtrFactory<GuestViewBase> weak_ptr_factory_; | 335 base::WeakPtrFactory<GuestViewBase> weak_ptr_factory_; |
333 | 336 |
334 DISALLOW_COPY_AND_ASSIGN(GuestViewBase); | 337 DISALLOW_COPY_AND_ASSIGN(GuestViewBase); |
335 }; | 338 }; |
336 | 339 |
337 } // namespace extensions | 340 } // namespace extensions |
338 | 341 |
339 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_ | 342 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_ |
OLD | NEW |