Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(311)

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_win.h

Issue 24012002: Move Range code to gfx. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: d Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_WIN_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_
7 7
8 #include <atlbase.h> 8 #include <atlbase.h>
9 #include <atlapp.h> 9 #include <atlapp.h>
10 #include <atlcrack.h> 10 #include <atlcrack.h>
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 virtual void UpdateCursor(const WebCursor& cursor) OVERRIDE; 182 virtual void UpdateCursor(const WebCursor& cursor) OVERRIDE;
183 virtual void SetIsLoading(bool is_loading) OVERRIDE; 183 virtual void SetIsLoading(bool is_loading) OVERRIDE;
184 virtual void TextInputTypeChanged(ui::TextInputType type, 184 virtual void TextInputTypeChanged(ui::TextInputType type,
185 ui::TextInputMode input_mode, 185 ui::TextInputMode input_mode,
186 bool can_compose_inline) OVERRIDE; 186 bool can_compose_inline) OVERRIDE;
187 virtual void SelectionBoundsChanged( 187 virtual void SelectionBoundsChanged(
188 const ViewHostMsg_SelectionBounds_Params& params) OVERRIDE; 188 const ViewHostMsg_SelectionBounds_Params& params) OVERRIDE;
189 virtual void ScrollOffsetChanged() OVERRIDE; 189 virtual void ScrollOffsetChanged() OVERRIDE;
190 virtual void ImeCancelComposition() OVERRIDE; 190 virtual void ImeCancelComposition() OVERRIDE;
191 virtual void ImeCompositionRangeChanged( 191 virtual void ImeCompositionRangeChanged(
192 const ui::Range& range, 192 const gfx::Range& range,
193 const std::vector<gfx::Rect>& character_bounds) OVERRIDE; 193 const std::vector<gfx::Rect>& character_bounds) OVERRIDE;
194 virtual void DidUpdateBackingStore( 194 virtual void DidUpdateBackingStore(
195 const gfx::Rect& scroll_rect, 195 const gfx::Rect& scroll_rect,
196 const gfx::Vector2d& scroll_delta, 196 const gfx::Vector2d& scroll_delta,
197 const std::vector<gfx::Rect>& copy_rects, 197 const std::vector<gfx::Rect>& copy_rects,
198 const ui::LatencyInfo& latency_info) OVERRIDE; 198 const ui::LatencyInfo& latency_info) OVERRIDE;
199 virtual void RenderProcessGone(base::TerminationStatus status, 199 virtual void RenderProcessGone(base::TerminationStatus status,
200 int error_code) OVERRIDE; 200 int error_code) OVERRIDE;
201 virtual bool CanSubscribeFrame() const OVERRIDE; 201 virtual bool CanSubscribeFrame() const OVERRIDE;
202 202
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 virtual void InsertText(const string16& text) OVERRIDE; 270 virtual void InsertText(const string16& text) OVERRIDE;
271 virtual void InsertChar(char16 ch, int flags) OVERRIDE; 271 virtual void InsertChar(char16 ch, int flags) OVERRIDE;
272 virtual gfx::NativeWindow GetAttachedWindow() const OVERRIDE; 272 virtual gfx::NativeWindow GetAttachedWindow() const OVERRIDE;
273 virtual ui::TextInputType GetTextInputType() const OVERRIDE; 273 virtual ui::TextInputType GetTextInputType() const OVERRIDE;
274 virtual ui::TextInputMode GetTextInputMode() const OVERRIDE; 274 virtual ui::TextInputMode GetTextInputMode() const OVERRIDE;
275 virtual bool CanComposeInline() const OVERRIDE; 275 virtual bool CanComposeInline() const OVERRIDE;
276 virtual gfx::Rect GetCaretBounds() OVERRIDE; 276 virtual gfx::Rect GetCaretBounds() OVERRIDE;
277 virtual bool GetCompositionCharacterBounds(uint32 index, 277 virtual bool GetCompositionCharacterBounds(uint32 index,
278 gfx::Rect* rect) OVERRIDE; 278 gfx::Rect* rect) OVERRIDE;
279 virtual bool HasCompositionText() OVERRIDE; 279 virtual bool HasCompositionText() OVERRIDE;
280 virtual bool GetTextRange(ui::Range* range) OVERRIDE; 280 virtual bool GetTextRange(gfx::Range* range) OVERRIDE;
281 virtual bool GetCompositionTextRange(ui::Range* range) OVERRIDE; 281 virtual bool GetCompositionTextRange(gfx::Range* range) OVERRIDE;
282 virtual bool GetSelectionRange(ui::Range* range) OVERRIDE; 282 virtual bool GetSelectionRange(gfx::Range* range) OVERRIDE;
283 virtual bool SetSelectionRange(const ui::Range& range) OVERRIDE; 283 virtual bool SetSelectionRange(const gfx::Range& range) OVERRIDE;
284 virtual bool DeleteRange(const ui::Range& range) OVERRIDE; 284 virtual bool DeleteRange(const gfx::Range& range) OVERRIDE;
285 virtual bool GetTextFromRange(const ui::Range& range, 285 virtual bool GetTextFromRange(const gfx::Range& range,
286 string16* text) OVERRIDE; 286 string16* text) OVERRIDE;
287 virtual void OnInputMethodChanged() OVERRIDE; 287 virtual void OnInputMethodChanged() OVERRIDE;
288 virtual bool ChangeTextDirectionAndLayoutAlignment( 288 virtual bool ChangeTextDirectionAndLayoutAlignment(
289 base::i18n::TextDirection direction) OVERRIDE; 289 base::i18n::TextDirection direction) OVERRIDE;
290 virtual void ExtendSelectionAndDelete(size_t before, size_t after) OVERRIDE; 290 virtual void ExtendSelectionAndDelete(size_t before, size_t after) OVERRIDE;
291 virtual void EnsureCaretInRect(const gfx::Rect& rect) OVERRIDE; 291 virtual void EnsureCaretInRect(const gfx::Rect& rect) OVERRIDE;
292 292
293 protected: 293 protected:
294 friend class RenderWidgetHostView; 294 friend class RenderWidgetHostView;
295 295
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 struct { 565 struct {
566 bool pending; 566 bool pending;
567 // Relative to the upper-left corner of the screen. 567 // Relative to the upper-left corner of the screen.
568 gfx::Point target; 568 gfx::Point target;
569 } move_to_center_request_; 569 } move_to_center_request_;
570 570
571 // In the case of the mouse being moved away from the view and then moved 571 // In the case of the mouse being moved away from the view and then moved
572 // back, we regard the mouse movement as (0, 0). 572 // back, we regard the mouse movement as (0, 0).
573 bool ignore_mouse_movement_; 573 bool ignore_mouse_movement_;
574 574
575 ui::Range composition_range_; 575 gfx::Range composition_range_;
576 576
577 // The current composition character bounds. 577 // The current composition character bounds.
578 std::vector<gfx::Rect> composition_character_bounds_; 578 std::vector<gfx::Rect> composition_character_bounds_;
579 579
580 // A cached latest caret rectangle sent from renderer. 580 // A cached latest caret rectangle sent from renderer.
581 gfx::Rect caret_rect_; 581 gfx::Rect caret_rect_;
582 582
583 // TODO(ananta) 583 // TODO(ananta)
584 // The WM_POINTERDOWN and touch related members should be moved to an 584 // The WM_POINTERDOWN and touch related members should be moved to an
585 // independent class to reduce the clutter. This includes members 585 // independent class to reduce the clutter. This includes members
(...skipping 19 matching lines...) Expand all
605 base::win::ScopedComPtr<IAccessible> window_iaccessible_; 605 base::win::ScopedComPtr<IAccessible> window_iaccessible_;
606 606
607 ui::LatencyInfo software_latency_info_; 607 ui::LatencyInfo software_latency_info_;
608 608
609 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); 609 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin);
610 }; 610 };
611 611
612 } // namespace content 612 } // namespace content
613 613
614 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ 614 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698