OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_VIEWS_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_VIEWS_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_VIEWS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
85 virtual void ImeCancelComposition() OVERRIDE; | 85 virtual void ImeCancelComposition() OVERRIDE; |
86 virtual void DidUpdateBackingStore( | 86 virtual void DidUpdateBackingStore( |
87 const gfx::Rect& scroll_rect, int scroll_dx, int scroll_dy, | 87 const gfx::Rect& scroll_rect, int scroll_dx, int scroll_dy, |
88 const std::vector<gfx::Rect>& copy_rects) OVERRIDE; | 88 const std::vector<gfx::Rect>& copy_rects) OVERRIDE; |
89 virtual void RenderViewGone(base::TerminationStatus status, | 89 virtual void RenderViewGone(base::TerminationStatus status, |
90 int error_code) OVERRIDE; | 90 int error_code) OVERRIDE; |
91 virtual void Destroy() OVERRIDE; | 91 virtual void Destroy() OVERRIDE; |
92 virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE; | 92 virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE; |
93 virtual void SelectionChanged(const string16& text, | 93 virtual void SelectionChanged(const string16& text, |
94 size_t offset, | 94 size_t offset, |
95 const ui::Range& range) OVERRIDE; | 95 const ui::Range& range) OVRERRIDE; |
Hironori Bono
2011/10/26 02:39:37
nit: OVRERRIDE -> OVERRIDE?
Peng
2011/10/26 16:20:16
Done.
| |
96 virtual void SelectionBoundsChanged(const gfx::Rect& start_rect, | 96 virtual void SelectionBoundsChanged(const gfx::Rect& start_rect, |
97 const gfx::Rect& end_rect) OVERRIDE; | 97 const gfx::Rect& end_rect) OVERRIDE; |
98 virtual void ShowingContextMenu(bool showing) OVERRIDE; | 98 virtual void ShowingContextMenu(bool showing) OVERRIDE; |
99 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; | 99 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; |
100 virtual void SetBackground(const SkBitmap& background) OVERRIDE; | 100 virtual void SetBackground(const SkBitmap& background) OVERRIDE; |
101 #if defined(OS_POSIX) | 101 #if defined(OS_POSIX) |
102 virtual void GetDefaultScreenInfo(WebKit::WebScreenInfo* results); | 102 virtual void GetDefaultScreenInfo(WebKit::WebScreenInfo* results); |
103 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE; | 103 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE; |
104 virtual gfx::Rect GetRootWindowBounds() OVERRIDE; | 104 virtual gfx::Rect GetRootWindowBounds() OVERRIDE; |
105 #endif | 105 #endif |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
171 virtual ui::TextInputType GetTextInputType() const OVERRIDE; | 171 virtual ui::TextInputType GetTextInputType() const OVERRIDE; |
172 virtual gfx::Rect GetCaretBounds() OVERRIDE; | 172 virtual gfx::Rect GetCaretBounds() OVERRIDE; |
173 virtual bool HasCompositionText() OVERRIDE; | 173 virtual bool HasCompositionText() OVERRIDE; |
174 virtual bool GetTextRange(ui::Range* range) OVERRIDE; | 174 virtual bool GetTextRange(ui::Range* range) OVERRIDE; |
175 virtual bool GetCompositionTextRange(ui::Range* range) OVERRIDE; | 175 virtual bool GetCompositionTextRange(ui::Range* range) OVERRIDE; |
176 virtual bool GetSelectionRange(ui::Range* range) OVERRIDE; | 176 virtual bool GetSelectionRange(ui::Range* range) OVERRIDE; |
177 virtual bool SetSelectionRange(const ui::Range& range) OVERRIDE; | 177 virtual bool SetSelectionRange(const ui::Range& range) OVERRIDE; |
178 virtual bool DeleteRange(const ui::Range& range) OVERRIDE; | 178 virtual bool DeleteRange(const ui::Range& range) OVERRIDE; |
179 virtual bool GetTextFromRange( | 179 virtual bool GetTextFromRange( |
180 const ui::Range& range, | 180 const ui::Range& range, |
181 const base::Callback<void(const string16&)>& callback) OVERRIDE; | 181 string16* text, |
182 ui::Range* actual_range) OVERRIDE; | |
182 virtual void OnInputMethodChanged() OVERRIDE; | 183 virtual void OnInputMethodChanged() OVERRIDE; |
183 virtual bool ChangeTextDirectionAndLayoutAlignment( | 184 virtual bool ChangeTextDirectionAndLayoutAlignment( |
184 base::i18n::TextDirection direction) OVERRIDE; | 185 base::i18n::TextDirection direction) OVERRIDE; |
185 virtual views::View* GetOwnerViewOfTextInputClient() OVERRIDE; | 186 virtual views::View* GetOwnerViewOfTextInputClient() OVERRIDE; |
186 | 187 |
187 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT) | 188 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT) |
188 virtual void AcceleratedSurfaceNew( | 189 virtual void AcceleratedSurfaceNew( |
189 int32 width, | 190 int32 width, |
190 int32 height, | 191 int32 height, |
191 uint64* surface_id, | 192 uint64* surface_id, |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
282 gfx::Size requested_size_; | 283 gfx::Size requested_size_; |
283 | 284 |
284 // The touch-event. Its touch-points are updated as necessary. A new | 285 // The touch-event. Its touch-points are updated as necessary. A new |
285 // touch-point is added from an ET_TOUCH_PRESSED event, and a touch-point is | 286 // touch-point is added from an ET_TOUCH_PRESSED event, and a touch-point is |
286 // removed from the list on an ET_TOUCH_RELEASED event. | 287 // removed from the list on an ET_TOUCH_RELEASED event. |
287 WebKit::WebTouchEvent touch_event_; | 288 WebKit::WebTouchEvent touch_event_; |
288 | 289 |
289 // The current text input type. | 290 // The current text input type. |
290 ui::TextInputType text_input_type_; | 291 ui::TextInputType text_input_type_; |
291 | 292 |
292 string16 selection_text_; | 293 // Rectangles before and after the selection. |
293 size_t selection_text_offset_; | |
294 ui::Range selection_range_; | |
295 gfx::Rect selection_start_rect_; | 294 gfx::Rect selection_start_rect_; |
296 gfx::Rect selection_end_rect_; | 295 gfx::Rect selection_end_rect_; |
297 | 296 |
298 // Indicates if there is onging composition text. | 297 // Indicates if there is onging composition text. |
299 bool has_composition_text_; | 298 bool has_composition_text_; |
300 | 299 |
301 string16 tooltip_text_; | 300 string16 tooltip_text_; |
302 | 301 |
303 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT) | 302 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT) |
304 std::vector< base::Callback<void(void)> > on_compositing_ended_callbacks_; | 303 std::vector< base::Callback<void(void)> > on_compositing_ended_callbacks_; |
(...skipping 11 matching lines...) Expand all Loading... | |
316 | 315 |
317 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT) | 316 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT) |
318 std::map<uint64, scoped_refptr<AcceleratedSurfaceContainerLinux> > | 317 std::map<uint64, scoped_refptr<AcceleratedSurfaceContainerLinux> > |
319 accelerated_surface_containers_; | 318 accelerated_surface_containers_; |
320 #endif | 319 #endif |
321 | 320 |
322 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewViews); | 321 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewViews); |
323 }; | 322 }; |
324 | 323 |
325 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_VIEWS_H_ | 324 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_VIEWS_H_ |
OLD | NEW |