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 <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 void UpdateTextInputState(ShowIme show_ime, ChangeSource change_source); | 267 void UpdateTextInputState(ShowIme show_ime, ChangeSource change_source); |
268 #endif | 268 #endif |
269 | 269 |
270 #if defined(OS_MACOSX) || defined(USE_AURA) | 270 #if defined(OS_MACOSX) || defined(USE_AURA) |
271 // Checks if the composition range or composition character bounds have been | 271 // Checks if the composition range or composition character bounds have been |
272 // changed. If they are changed, the new value will be sent to the browser | 272 // changed. If they are changed, the new value will be sent to the browser |
273 // process. | 273 // process. |
274 void UpdateCompositionInfo(bool should_update_range); | 274 void UpdateCompositionInfo(bool should_update_range); |
275 #endif | 275 #endif |
276 | 276 |
277 #if defined(OS_MACOSX) | |
278 void DidChangeScrollbarsForMainFrame(bool has_horizontal_scrollbar, | |
279 bool has_vertical_scrollbar); | |
280 #endif // defined(OS_MACOSX) | |
281 | |
282 #if defined(OS_ANDROID) | 277 #if defined(OS_ANDROID) |
283 void DidChangeBodyBackgroundColor(SkColor bg_color); | 278 void DidChangeBodyBackgroundColor(SkColor bg_color); |
284 #endif | 279 #endif |
285 | 280 |
286 protected: | 281 protected: |
287 // Friend RefCounted so that the dtor can be non-public. Using this class | 282 // Friend RefCounted so that the dtor can be non-public. Using this class |
288 // without ref-counting is an error. | 283 // without ref-counting is an error. |
289 friend class base::RefCounted<RenderWidget>; | 284 friend class base::RefCounted<RenderWidget>; |
290 // For unit tests. | 285 // For unit tests. |
291 friend class RenderWidgetTest; | 286 friend class RenderWidgetTest; |
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
688 // browser regarding IME-type events that have not been acknowledged by the | 683 // browser regarding IME-type events that have not been acknowledged by the |
689 // browser. If this value is not 0 IME events will be dropped. | 684 // browser. If this value is not 0 IME events will be dropped. |
690 int outstanding_ime_acks_; | 685 int outstanding_ime_acks_; |
691 | 686 |
692 // The background color of the document body element. This is used as the | 687 // The background color of the document body element. This is used as the |
693 // default background color for filling the screen areas for which we don't | 688 // default background color for filling the screen areas for which we don't |
694 // have the actual content. | 689 // have the actual content. |
695 SkColor body_background_color_; | 690 SkColor body_background_color_; |
696 #endif | 691 #endif |
697 | 692 |
698 #if defined(OS_MACOSX) | |
699 // These store the "has scrollbars" state last sent to the browser. | |
700 bool cached_has_main_frame_horizontal_scrollbar_; | |
701 bool cached_has_main_frame_vertical_scrollbar_; | |
702 #endif // defined(OS_MACOSX) | |
703 | |
704 scoped_ptr<ScreenMetricsEmulator> screen_metrics_emulator_; | 693 scoped_ptr<ScreenMetricsEmulator> screen_metrics_emulator_; |
705 | 694 |
706 // Popups may be displaced when screen metrics emulation is enabled. | 695 // Popups may be displaced when screen metrics emulation is enabled. |
707 // These values are used to properly adjust popup position. | 696 // These values are used to properly adjust popup position. |
708 gfx::Point popup_view_origin_for_emulation_; | 697 gfx::Point popup_view_origin_for_emulation_; |
709 gfx::Point popup_screen_origin_for_emulation_; | 698 gfx::Point popup_screen_origin_for_emulation_; |
710 float popup_origin_scale_for_emulation_; | 699 float popup_origin_scale_for_emulation_; |
711 | 700 |
712 scoped_ptr<ResizingModeSelector> resizing_mode_selector_; | 701 scoped_ptr<ResizingModeSelector> resizing_mode_selector_; |
713 | 702 |
(...skipping 11 matching lines...) Expand all Loading... |
725 | 714 |
726 ui::MenuSourceType context_menu_source_type_; | 715 ui::MenuSourceType context_menu_source_type_; |
727 gfx::Point touch_editing_context_menu_location_; | 716 gfx::Point touch_editing_context_menu_location_; |
728 | 717 |
729 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 718 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
730 }; | 719 }; |
731 | 720 |
732 } // namespace content | 721 } // namespace content |
733 | 722 |
734 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 723 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |