OLD | NEW |
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_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 | 398 |
399 // Called by the RenderWidgetHost when an ambiguous gesture is detected to | 399 // Called by the RenderWidgetHost when an ambiguous gesture is detected to |
400 // show the disambiguation popup bubble. | 400 // show the disambiguation popup bubble. |
401 virtual void ShowDisambiguationPopup(const gfx::Rect& rect_pixels, | 401 virtual void ShowDisambiguationPopup(const gfx::Rect& rect_pixels, |
402 const SkBitmap& zoomed_bitmap); | 402 const SkBitmap& zoomed_bitmap); |
403 | 403 |
404 // Called by the WebContentsImpl when a user tries to navigate a new page on | 404 // Called by the WebContentsImpl when a user tries to navigate a new page on |
405 // main frame. | 405 // main frame. |
406 virtual void OnDidNavigateMainFrameToNewPage(); | 406 virtual void OnDidNavigateMainFrameToNewPage(); |
407 | 407 |
| 408 // Called by the WebContentsImpl when the fullscreen state is changed. |
| 409 virtual void OnFullscreenStateChanged(bool is_fullscreen) {} |
| 410 |
408 // Called by WebContentsImpl to notify the view about a change in visibility | 411 // Called by WebContentsImpl to notify the view about a change in visibility |
409 // of context menu. The view can then perform platform specific tasks and | 412 // of context menu. The view can then perform platform specific tasks and |
410 // changes. | 413 // changes. |
411 virtual void SetShowingContextMenu(bool showing) {} | 414 virtual void SetShowingContextMenu(bool showing) {} |
412 | 415 |
413 // Add and remove observers for lifetime event notifications. The order in | 416 // Add and remove observers for lifetime event notifications. The order in |
414 // which notifications are sent to observers is undefined. Clients must be | 417 // which notifications are sent to observers is undefined. Clients must be |
415 // sure to remove the observer before they go away. | 418 // sure to remove the observer before they go away. |
416 void AddObserver(RenderWidgetHostViewBaseObserver* observer); | 419 void AddObserver(RenderWidgetHostViewBaseObserver* observer); |
417 void RemoveObserver(RenderWidgetHostViewBaseObserver* observer); | 420 void RemoveObserver(RenderWidgetHostViewBaseObserver* observer); |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; | 496 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; |
494 | 497 |
495 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 498 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
496 | 499 |
497 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 500 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
498 }; | 501 }; |
499 | 502 |
500 } // namespace content | 503 } // namespace content |
501 | 504 |
502 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 505 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
OLD | NEW |