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_VIEW_BASE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "cc/surfaces/surface_id.h" | 23 #include "cc/surfaces/surface_id.h" |
24 #include "content/browser/renderer_host/event_with_latency_info.h" | 24 #include "content/browser/renderer_host/event_with_latency_info.h" |
25 #include "content/common/content_export.h" | 25 #include "content/common/content_export.h" |
26 #include "content/common/input/input_event_ack_state.h" | 26 #include "content/common/input/input_event_ack_state.h" |
27 #include "content/public/browser/render_widget_host_view.h" | 27 #include "content/public/browser/render_widget_host_view.h" |
28 #include "content/public/common/screen_info.h" | 28 #include "content/public/common/screen_info.h" |
29 #include "ipc/ipc_listener.h" | 29 #include "ipc/ipc_listener.h" |
30 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree
nOrientationType.h" | 30 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree
nOrientationType.h" |
31 #include "third_party/WebKit/public/web/WebPopupType.h" | 31 #include "third_party/WebKit/public/web/WebPopupType.h" |
32 #include "third_party/WebKit/public/web/WebTextDirection.h" | 32 #include "third_party/WebKit/public/web/WebTextDirection.h" |
| 33 #include "third_party/WebKit/public/web/WebTextSuggestionInfo.h" |
33 #include "third_party/skia/include/core/SkImageInfo.h" | 34 #include "third_party/skia/include/core/SkImageInfo.h" |
34 #include "ui/accessibility/ax_tree_id_registry.h" | 35 #include "ui/accessibility/ax_tree_id_registry.h" |
35 #include "ui/base/ime/text_input_mode.h" | 36 #include "ui/base/ime/text_input_mode.h" |
36 #include "ui/base/ime/text_input_type.h" | 37 #include "ui/base/ime/text_input_type.h" |
37 #include "ui/display/display.h" | 38 #include "ui/display/display.h" |
38 #include "ui/gfx/geometry/rect.h" | 39 #include "ui/gfx/geometry/rect.h" |
39 #include "ui/gfx/native_widget_types.h" | 40 #include "ui/gfx/native_widget_types.h" |
40 #include "ui/gfx/range/range.h" | 41 #include "ui/gfx/range/range.h" |
41 #include "ui/surface/transport_dib.h" | 42 #include "ui/surface/transport_dib.h" |
42 | 43 |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 // RenderWidget's window's origin. Focus and anchor bound are represented as | 331 // RenderWidget's window's origin. Focus and anchor bound are represented as |
331 // gfx::Rect. | 332 // gfx::Rect. |
332 virtual void SelectionBoundsChanged( | 333 virtual void SelectionBoundsChanged( |
333 const ViewHostMsg_SelectionBounds_Params& params); | 334 const ViewHostMsg_SelectionBounds_Params& params); |
334 | 335 |
335 // Updates the range of the marked text in an IME composition. | 336 // Updates the range of the marked text in an IME composition. |
336 virtual void ImeCompositionRangeChanged( | 337 virtual void ImeCompositionRangeChanged( |
337 const gfx::Range& range, | 338 const gfx::Range& range, |
338 const std::vector<gfx::Rect>& character_bounds); | 339 const std::vector<gfx::Rect>& character_bounds); |
339 | 340 |
| 341 // Show drop-down menu for choosing among suggested text replacements. |
| 342 virtual void ShowTextSuggestionMenu( |
| 343 const std::vector<blink::WebTextSuggestionInfo>& suggestionInfos); |
| 344 |
340 //---------------------------------------------------------------------------- | 345 //---------------------------------------------------------------------------- |
341 // The following pure virtual methods are implemented by derived classes. | 346 // The following pure virtual methods are implemented by derived classes. |
342 | 347 |
343 // Perform all the initialization steps necessary for this object to represent | 348 // Perform all the initialization steps necessary for this object to represent |
344 // a popup (such as a <select> dropdown), then shows the popup at |pos|. | 349 // a popup (such as a <select> dropdown), then shows the popup at |pos|. |
345 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, | 350 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, |
346 const gfx::Rect& bounds) = 0; | 351 const gfx::Rect& bounds) = 0; |
347 | 352 |
348 // Perform all the initialization steps necessary for this object to represent | 353 // Perform all the initialization steps necessary for this object to represent |
349 // a full screen window. | 354 // a full screen window. |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; | 472 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; |
468 | 473 |
469 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 474 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
470 | 475 |
471 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 476 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
472 }; | 477 }; |
473 | 478 |
474 } // namespace content | 479 } // namespace content |
475 | 480 |
476 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 481 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
OLD | NEW |