| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 struct WebPoint; | 86 struct WebPoint; |
| 87 struct WebWindowFeatures; | 87 struct WebWindowFeatures; |
| 88 } // namespace blink | 88 } // namespace blink |
| 89 | 89 |
| 90 namespace gfx { | 90 namespace gfx { |
| 91 class ICCProfile; | 91 class ICCProfile; |
| 92 } | 92 } |
| 93 | 93 |
| 94 namespace content { | 94 namespace content { |
| 95 | 95 |
| 96 class IdleUserDetector; |
| 96 class RendererDateTimePicker; | 97 class RendererDateTimePicker; |
| 97 class RenderViewImplTest; | 98 class RenderViewImplTest; |
| 98 class RenderViewObserver; | 99 class RenderViewObserver; |
| 99 class RenderViewTest; | 100 class RenderViewTest; |
| 100 class SpeechRecognitionDispatcher; | 101 class SpeechRecognitionDispatcher; |
| 101 struct FaviconURL; | 102 struct FaviconURL; |
| 102 struct FileChooserParams; | 103 struct FileChooserParams; |
| 103 struct ResizeParams; | 104 struct ResizeParams; |
| 104 | 105 |
| 105 namespace mojom { | 106 namespace mojom { |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 bool uses_temporary_zoom_level() const { return uses_temporary_zoom_level_; } | 375 bool uses_temporary_zoom_level() const { return uses_temporary_zoom_level_; } |
| 375 | 376 |
| 376 // Please do not add your stuff randomly to the end here. If there is an | 377 // Please do not add your stuff randomly to the end here. If there is an |
| 377 // appropriate section, add it there. If not, there are some random functions | 378 // appropriate section, add it there. If not, there are some random functions |
| 378 // nearer to the top you can add it to. | 379 // nearer to the top you can add it to. |
| 379 | 380 |
| 380 base::WeakPtr<RenderViewImpl> GetWeakPtr() { | 381 base::WeakPtr<RenderViewImpl> GetWeakPtr() { |
| 381 return weak_ptr_factory_.GetWeakPtr(); | 382 return weak_ptr_factory_.GetWeakPtr(); |
| 382 } | 383 } |
| 383 | 384 |
| 385 InputEventAckState HandleInputEvent( |
| 386 const blink::WebCoalescedInputEvent& input_event, |
| 387 const ui::LatencyInfo& latency_info, |
| 388 InputEventDispatchType dispatch_type) override; |
| 389 |
| 384 protected: | 390 protected: |
| 385 // RenderWidget overrides: | 391 // RenderWidget overrides: |
| 386 blink::WebWidget* GetWebWidget() const override; | 392 blink::WebWidget* GetWebWidget() const override; |
| 387 void CloseForFrame() override; | 393 void CloseForFrame() override; |
| 388 void Close() override; | 394 void Close() override; |
| 389 void OnResize(const ResizeParams& params) override; | 395 void OnResize(const ResizeParams& params) override; |
| 390 void OnSetFocus(bool enable) override; | 396 void OnSetFocus(bool enable) override; |
| 391 GURL GetURLForGraphicsContext3D() override; | 397 GURL GetURLForGraphicsContext3D() override; |
| 392 void OnOrientationChange() override; | 398 void OnOrientationChange() override; |
| 393 void DidCommitCompositorFrame() override; | 399 void DidCommitCompositorFrame() override; |
| (...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 804 // is fine. | 810 // is fine. |
| 805 base::ObserverList<RenderViewObserver> observers_; | 811 base::ObserverList<RenderViewObserver> observers_; |
| 806 | 812 |
| 807 // NOTE: stats_collection_observer_ should be the last members because their | 813 // NOTE: stats_collection_observer_ should be the last members because their |
| 808 // constructors call the AddObservers method of RenderViewImpl. | 814 // constructors call the AddObservers method of RenderViewImpl. |
| 809 std::unique_ptr<StatsCollectionObserver> stats_collection_observer_; | 815 std::unique_ptr<StatsCollectionObserver> stats_collection_observer_; |
| 810 | 816 |
| 811 typedef std::map<cc::SharedBitmapId, cc::SharedBitmap*> BitmapMap; | 817 typedef std::map<cc::SharedBitmapId, cc::SharedBitmap*> BitmapMap; |
| 812 BitmapMap disambiguation_bitmaps_; | 818 BitmapMap disambiguation_bitmaps_; |
| 813 | 819 |
| 820 std::unique_ptr<IdleUserDetector> idle_user_detector_; |
| 821 |
| 814 // --------------------------------------------------------------------------- | 822 // --------------------------------------------------------------------------- |
| 815 // ADDING NEW DATA? Please see if it fits appropriately in one of the above | 823 // ADDING NEW DATA? Please see if it fits appropriately in one of the above |
| 816 // sections rather than throwing it randomly at the end. If you're adding a | 824 // sections rather than throwing it randomly at the end. If you're adding a |
| 817 // bunch of stuff, you should probably create a helper class and put your | 825 // bunch of stuff, you should probably create a helper class and put your |
| 818 // data and methods on that to avoid bloating RenderView more. You can | 826 // data and methods on that to avoid bloating RenderView more. You can |
| 819 // use the Observer interface to filter IPC messages and receive frame change | 827 // use the Observer interface to filter IPC messages and receive frame change |
| 820 // notifications. | 828 // notifications. |
| 821 // --------------------------------------------------------------------------- | 829 // --------------------------------------------------------------------------- |
| 822 | 830 |
| 823 base::WeakPtrFactory<RenderViewImpl> weak_ptr_factory_; | 831 base::WeakPtrFactory<RenderViewImpl> weak_ptr_factory_; |
| 824 | 832 |
| 825 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 833 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
| 826 }; | 834 }; |
| 827 | 835 |
| 828 } // namespace content | 836 } // namespace content |
| 829 | 837 |
| 830 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 838 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| OLD | NEW |