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_RENDERER_RENDER_VIEW_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 InputEventDispatchType dispatch_type) override; | 388 InputEventDispatchType dispatch_type) override; |
389 | 389 |
390 protected: | 390 protected: |
391 // RenderWidget overrides: | 391 // RenderWidget overrides: |
392 blink::WebWidget* GetWebWidget() const override; | 392 blink::WebWidget* GetWebWidget() const override; |
393 void CloseForFrame() override; | 393 void CloseForFrame() override; |
394 void Close() override; | 394 void Close() override; |
395 void OnResize(const ResizeParams& params) override; | 395 void OnResize(const ResizeParams& params) override; |
396 void OnSetFocus(bool enable) override; | 396 void OnSetFocus(bool enable) override; |
397 GURL GetURLForGraphicsContext3D() override; | 397 GURL GetURLForGraphicsContext3D() override; |
398 void OnOrientationChange() override; | |
399 void DidCommitCompositorFrame() override; | 398 void DidCommitCompositorFrame() override; |
400 void DidCompletePageScaleAnimation() override; | 399 void DidCompletePageScaleAnimation() override; |
401 void OnDeviceScaleFactorChanged() override; | 400 void OnDeviceScaleFactorChanged() override; |
402 void ResizeWebWidget() override; | 401 void ResizeWebWidget() override; |
403 | 402 |
404 RenderViewImpl(CompositorDependencies* compositor_deps, | 403 RenderViewImpl(CompositorDependencies* compositor_deps, |
405 const mojom::CreateViewParams& params); | 404 const mojom::CreateViewParams& params); |
406 | 405 |
407 void Initialize(const mojom::CreateViewParams& params, | 406 void Initialize(const mojom::CreateViewParams& params, |
408 const RenderWidget::ShowCallback& show_callback); | 407 const RenderWidget::ShowCallback& show_callback); |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 bool animate); | 559 bool animate); |
561 #elif defined(OS_MACOSX) | 560 #elif defined(OS_MACOSX) |
562 void OnGetRenderedText(); | 561 void OnGetRenderedText(); |
563 #endif | 562 #endif |
564 | 563 |
565 // Page message handlers ----------------------------------------------------- | 564 // Page message handlers ----------------------------------------------------- |
566 void OnUpdateWindowScreenRect(gfx::Rect window_screen_rect); | 565 void OnUpdateWindowScreenRect(gfx::Rect window_screen_rect); |
567 void OnSetZoomLevel(PageMsg_SetZoomLevel_Command command, double zoom_level); | 566 void OnSetZoomLevel(PageMsg_SetZoomLevel_Command command, double zoom_level); |
568 void OnPageWasHidden(); | 567 void OnPageWasHidden(); |
569 void OnPageWasShown(); | 568 void OnPageWasShown(); |
| 569 void OnUpdateScreenInfo(const ScreenInfo& screen_info); |
570 | 570 |
571 // Adding a new message handler? Please add it in alphabetical order above | 571 // Adding a new message handler? Please add it in alphabetical order above |
572 // and put it in the same position in the .cc file. | 572 // and put it in the same position in the .cc file. |
573 | 573 |
574 // Misc private functions ---------------------------------------------------- | 574 // Misc private functions ---------------------------------------------------- |
575 // Check whether the preferred size has changed. | 575 // Check whether the preferred size has changed. |
576 void CheckPreferredSize(); | 576 void CheckPreferredSize(); |
577 | 577 |
578 #if defined(OS_ANDROID) | 578 #if defined(OS_ANDROID) |
579 // Make the video capture devices (e.g. webcam) stop/resume delivering video | 579 // Make the video capture devices (e.g. webcam) stop/resume delivering video |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
829 // --------------------------------------------------------------------------- | 829 // --------------------------------------------------------------------------- |
830 | 830 |
831 base::WeakPtrFactory<RenderViewImpl> weak_ptr_factory_; | 831 base::WeakPtrFactory<RenderViewImpl> weak_ptr_factory_; |
832 | 832 |
833 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 833 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
834 }; | 834 }; |
835 | 835 |
836 } // namespace content | 836 } // namespace content |
837 | 837 |
838 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 838 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |