| 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 13 matching lines...) Expand all  Loading... | 
| 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/readback_types.h" | 27 #include "content/public/browser/readback_types.h" | 
| 28 #include "content/public/browser/render_widget_host_view.h" | 28 #include "content/public/browser/render_widget_host_view.h" | 
| 29 #include "content/public/common/screen_info.h" | 29 #include "content/public/common/screen_info.h" | 
| 30 #include "ipc/ipc_listener.h" | 30 #include "ipc/ipc_listener.h" | 
| 31 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree
     nOrientationType.h" | 31 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree
     nOrientationType.h" | 
| 32 #include "third_party/WebKit/public/web/WebPopupType.h" | 32 #include "third_party/WebKit/public/web/WebPopupType.h" | 
| 33 #include "third_party/WebKit/public/web/WebTextDirection.h" | 33 #include "third_party/WebKit/public/web/WebTextDirection.h" | 
|  | 34 #include "third_party/WebKit/public/web/WebTextSuggestionInfo.h" | 
| 34 #include "third_party/skia/include/core/SkImageInfo.h" | 35 #include "third_party/skia/include/core/SkImageInfo.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 | 
| 43 class SkBitmap; | 44 class SkBitmap; | 
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 309   // RenderWidget's window's origin. Focus and anchor bound are represented as | 310   // RenderWidget's window's origin. Focus and anchor bound are represented as | 
| 310   // gfx::Rect. | 311   // gfx::Rect. | 
| 311   virtual void SelectionBoundsChanged( | 312   virtual void SelectionBoundsChanged( | 
| 312       const ViewHostMsg_SelectionBounds_Params& params); | 313       const ViewHostMsg_SelectionBounds_Params& params); | 
| 313 | 314 | 
| 314   // Updates the range of the marked text in an IME composition. | 315   // Updates the range of the marked text in an IME composition. | 
| 315   virtual void ImeCompositionRangeChanged( | 316   virtual void ImeCompositionRangeChanged( | 
| 316       const gfx::Range& range, | 317       const gfx::Range& range, | 
| 317       const std::vector<gfx::Rect>& character_bounds); | 318       const std::vector<gfx::Rect>& character_bounds); | 
| 318 | 319 | 
|  | 320   // Show drop-down menu for choosing among suggested text replacements. | 
|  | 321   virtual void ShowTextSuggestionMenu( | 
|  | 322       const std::vector<blink::WebTextSuggestionInfo>& suggestionInfos); | 
|  | 323 | 
| 319   //---------------------------------------------------------------------------- | 324   //---------------------------------------------------------------------------- | 
| 320   // The following pure virtual methods are implemented by derived classes. | 325   // The following pure virtual methods are implemented by derived classes. | 
| 321 | 326 | 
| 322   // Perform all the initialization steps necessary for this object to represent | 327   // Perform all the initialization steps necessary for this object to represent | 
| 323   // a popup (such as a <select> dropdown), then shows the popup at |pos|. | 328   // a popup (such as a <select> dropdown), then shows the popup at |pos|. | 
| 324   virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, | 329   virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, | 
| 325                            const gfx::Rect& bounds) = 0; | 330                            const gfx::Rect& bounds) = 0; | 
| 326 | 331 | 
| 327   // Perform all the initialization steps necessary for this object to represent | 332   // Perform all the initialization steps necessary for this object to represent | 
| 328   // a full screen window. | 333   // a full screen window. | 
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 487   base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; | 492   base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; | 
| 488 | 493 | 
| 489   base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 494   base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 
| 490 | 495 | 
| 491   DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 496   DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 
| 492 }; | 497 }; | 
| 493 | 498 | 
| 494 }  // namespace content | 499 }  // namespace content | 
| 495 | 500 | 
| 496 #endif  // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 501 #endif  // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 
| OLD | NEW | 
|---|