| 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_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <list> | 9 #include <list> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 540 | 540 |
| 541 // Returns the ID that uniquely describes this component to the latency | 541 // Returns the ID that uniquely describes this component to the latency |
| 542 // subsystem. | 542 // subsystem. |
| 543 int64 GetLatencyComponentId(); | 543 int64 GetLatencyComponentId(); |
| 544 | 544 |
| 545 static void CompositorFrameDrawn(const ui::LatencyInfo& latency_info); | 545 static void CompositorFrameDrawn(const ui::LatencyInfo& latency_info); |
| 546 | 546 |
| 547 // Don't check whether we expected a resize ack during layout tests. | 547 // Don't check whether we expected a resize ack during layout tests. |
| 548 static void DisableResizeAckCheckForTesting(); | 548 static void DisableResizeAckCheckForTesting(); |
| 549 | 549 |
| 550 // Public interface for changing TextInputType etc. at once. |
| 551 void ChangeTextInputType(ui::TextInputType type, |
| 552 ui::TextInputMode input_mode, |
| 553 bool can_compose_inline); |
| 554 void CancelImeComposition(); |
| 555 #if defined(OS_MACOSX) || defined(OS_WIN) || defined(USE_AURA) |
| 556 void ChangeImeCompositionRange( |
| 557 const gfx::Range& range, |
| 558 const std::vector<gfx::Rect>& character_bounds); |
| 559 #endif |
| 560 |
| 550 protected: | 561 protected: |
| 551 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() OVERRIDE; | 562 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() OVERRIDE; |
| 552 | 563 |
| 553 // Create a LatencyInfo struct with INPUT_EVENT_LATENCY_RWH_COMPONENT | 564 // Create a LatencyInfo struct with INPUT_EVENT_LATENCY_RWH_COMPONENT |
| 554 // component if it is not already in |original|. And if |original| is | 565 // component if it is not already in |original|. And if |original| is |
| 555 // not NULL, it is also merged into the resulting LatencyInfo. | 566 // not NULL, it is also merged into the resulting LatencyInfo. |
| 556 ui::LatencyInfo CreateRWHLatencyInfoIfNotExist( | 567 ui::LatencyInfo CreateRWHLatencyInfoIfNotExist( |
| 557 const ui::LatencyInfo* original); | 568 const ui::LatencyInfo* original); |
| 558 | 569 |
| 559 // Called when we receive a notification indicating that the renderer | 570 // Called when we receive a notification indicating that the renderer |
| (...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 922 int64 last_input_number_; | 933 int64 last_input_number_; |
| 923 | 934 |
| 924 BrowserRenderingStats rendering_stats_; | 935 BrowserRenderingStats rendering_stats_; |
| 925 | 936 |
| 926 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 937 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 927 }; | 938 }; |
| 928 | 939 |
| 929 } // namespace content | 940 } // namespace content |
| 930 | 941 |
| 931 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 942 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |