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_WIDGET_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_ |
6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ | 6 #define CONTENT_RENDERER_RENDER_WIDGET_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 | 399 |
400 // TODO(ekaramad): The reference to the focused pepper plugin will be removed | 400 // TODO(ekaramad): The reference to the focused pepper plugin will be removed |
401 // from RenderWidget. The purpose of having the reference here was to make IME | 401 // from RenderWidget. The purpose of having the reference here was to make IME |
402 // work for OOPIF (https://crbug.com/643727). | 402 // work for OOPIF (https://crbug.com/643727). |
403 void set_focused_pepper_plugin(PepperPluginInstanceImpl* plugin) { | 403 void set_focused_pepper_plugin(PepperPluginInstanceImpl* plugin) { |
404 focused_pepper_plugin_ = plugin; | 404 focused_pepper_plugin_ = plugin; |
405 } | 405 } |
406 | 406 |
407 // When emulated, this returns original device scale factor. | 407 // When emulated, this returns original device scale factor. |
408 float GetOriginalDeviceScaleFactor() const; | 408 float GetOriginalDeviceScaleFactor() const override; |
409 | 409 |
410 // Helper to convert |point| using ConvertWindowToViewport(). | 410 // Helper to convert |point| using ConvertWindowToViewport(). |
411 gfx::Point ConvertWindowPointToViewport(const gfx::Point& point); | 411 gfx::Point ConvertWindowPointToViewport(const gfx::Point& point); |
412 | 412 |
413 protected: | 413 protected: |
414 // Friend RefCounted so that the dtor can be non-public. Using this class | 414 // Friend RefCounted so that the dtor can be non-public. Using this class |
415 // without ref-counting is an error. | 415 // without ref-counting is an error. |
416 friend class base::RefCounted<RenderWidget>; | 416 friend class base::RefCounted<RenderWidget>; |
417 | 417 |
418 // For unit tests. | 418 // For unit tests. |
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
833 // being handled. If the current event results in starting a drag/drop | 833 // being handled. If the current event results in starting a drag/drop |
834 // session, this info is sent to the browser along with other drag/drop info. | 834 // session, this info is sent to the browser along with other drag/drop info. |
835 DragEventSourceInfo possible_drag_event_info_; | 835 DragEventSourceInfo possible_drag_event_info_; |
836 | 836 |
837 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 837 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
838 }; | 838 }; |
839 | 839 |
840 } // namespace content | 840 } // namespace content |
841 | 841 |
842 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 842 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |