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_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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 const gfx::Vector2d& scroll_delta, | 195 const gfx::Vector2d& scroll_delta, |
196 const std::vector<gfx::Rect>& copy_rects, | 196 const std::vector<gfx::Rect>& copy_rects, |
197 const ui::LatencyInfo& latency_info) OVERRIDE; | 197 const ui::LatencyInfo& latency_info) OVERRIDE; |
198 virtual void RenderProcessGone(base::TerminationStatus status, | 198 virtual void RenderProcessGone(base::TerminationStatus status, |
199 int error_code) OVERRIDE; | 199 int error_code) OVERRIDE; |
200 virtual bool CanSubscribeFrame() const OVERRIDE; | 200 virtual bool CanSubscribeFrame() const OVERRIDE; |
201 | 201 |
202 // called by WebContentsImpl before DestroyWindow | 202 // called by WebContentsImpl before DestroyWindow |
203 virtual void WillWmDestroy() OVERRIDE; | 203 virtual void WillWmDestroy() OVERRIDE; |
204 virtual void Destroy() OVERRIDE; | 204 virtual void Destroy() OVERRIDE; |
205 virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE; | 205 virtual void SetTooltipText(const base::string16& tooltip_text) OVERRIDE; |
206 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; | 206 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; |
207 virtual void CopyFromCompositingSurface( | 207 virtual void CopyFromCompositingSurface( |
208 const gfx::Rect& src_subrect, | 208 const gfx::Rect& src_subrect, |
209 const gfx::Size& dst_size, | 209 const gfx::Size& dst_size, |
210 const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE; | 210 const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE; |
211 virtual void CopyFromCompositingSurfaceToVideoFrame( | 211 virtual void CopyFromCompositingSurfaceToVideoFrame( |
212 const gfx::Rect& src_subrect, | 212 const gfx::Rect& src_subrect, |
213 const scoped_refptr<media::VideoFrame>& target, | 213 const scoped_refptr<media::VideoFrame>& target, |
214 const base::Callback<void(bool)>& callback) OVERRIDE; | 214 const base::Callback<void(bool)>& callback) OVERRIDE; |
215 virtual bool CanCopyToVideoFrame() const OVERRIDE; | 215 virtual bool CanCopyToVideoFrame() const OVERRIDE; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 virtual bool CanDispatchToConsumer(ui::GestureConsumer* consumer) OVERRIDE; | 263 virtual bool CanDispatchToConsumer(ui::GestureConsumer* consumer) OVERRIDE; |
264 virtual void DispatchPostponedGestureEvent(ui::GestureEvent* event) OVERRIDE; | 264 virtual void DispatchPostponedGestureEvent(ui::GestureEvent* event) OVERRIDE; |
265 virtual void DispatchCancelTouchEvent(ui::TouchEvent* event) OVERRIDE; | 265 virtual void DispatchCancelTouchEvent(ui::TouchEvent* event) OVERRIDE; |
266 | 266 |
267 // Overridden from ui::TextInputClient for Win8/metro TSF support. | 267 // Overridden from ui::TextInputClient for Win8/metro TSF support. |
268 // Following methods are not used in existing IMM32 related implementation. | 268 // Following methods are not used in existing IMM32 related implementation. |
269 virtual void SetCompositionText( | 269 virtual void SetCompositionText( |
270 const ui::CompositionText& composition) OVERRIDE; | 270 const ui::CompositionText& composition) OVERRIDE; |
271 virtual void ConfirmCompositionText() OVERRIDE; | 271 virtual void ConfirmCompositionText() OVERRIDE; |
272 virtual void ClearCompositionText() OVERRIDE; | 272 virtual void ClearCompositionText() OVERRIDE; |
273 virtual void InsertText(const string16& text) OVERRIDE; | 273 virtual void InsertText(const base::string16& text) OVERRIDE; |
274 virtual void InsertChar(char16 ch, int flags) OVERRIDE; | 274 virtual void InsertChar(char16 ch, int flags) OVERRIDE; |
275 virtual gfx::NativeWindow GetAttachedWindow() const OVERRIDE; | 275 virtual gfx::NativeWindow GetAttachedWindow() const OVERRIDE; |
276 virtual ui::TextInputType GetTextInputType() const OVERRIDE; | 276 virtual ui::TextInputType GetTextInputType() const OVERRIDE; |
277 virtual ui::TextInputMode GetTextInputMode() const OVERRIDE; | 277 virtual ui::TextInputMode GetTextInputMode() const OVERRIDE; |
278 virtual bool CanComposeInline() const OVERRIDE; | 278 virtual bool CanComposeInline() const OVERRIDE; |
279 virtual gfx::Rect GetCaretBounds() const OVERRIDE; | 279 virtual gfx::Rect GetCaretBounds() const OVERRIDE; |
280 virtual bool GetCompositionCharacterBounds(uint32 index, | 280 virtual bool GetCompositionCharacterBounds(uint32 index, |
281 gfx::Rect* rect) const OVERRIDE; | 281 gfx::Rect* rect) const OVERRIDE; |
282 virtual bool HasCompositionText() const OVERRIDE; | 282 virtual bool HasCompositionText() const OVERRIDE; |
283 virtual bool GetTextRange(gfx::Range* range) const OVERRIDE; | 283 virtual bool GetTextRange(gfx::Range* range) const OVERRIDE; |
284 virtual bool GetCompositionTextRange(gfx::Range* range) const OVERRIDE; | 284 virtual bool GetCompositionTextRange(gfx::Range* range) const OVERRIDE; |
285 virtual bool GetSelectionRange(gfx::Range* range) const OVERRIDE; | 285 virtual bool GetSelectionRange(gfx::Range* range) const OVERRIDE; |
286 virtual bool SetSelectionRange(const gfx::Range& range) OVERRIDE; | 286 virtual bool SetSelectionRange(const gfx::Range& range) OVERRIDE; |
287 virtual bool DeleteRange(const gfx::Range& range) OVERRIDE; | 287 virtual bool DeleteRange(const gfx::Range& range) OVERRIDE; |
288 virtual bool GetTextFromRange(const gfx::Range& range, | 288 virtual bool GetTextFromRange(const gfx::Range& range, |
289 string16* text) const OVERRIDE; | 289 base::string16* text) const OVERRIDE; |
290 virtual void OnInputMethodChanged() OVERRIDE; | 290 virtual void OnInputMethodChanged() OVERRIDE; |
291 virtual bool ChangeTextDirectionAndLayoutAlignment( | 291 virtual bool ChangeTextDirectionAndLayoutAlignment( |
292 base::i18n::TextDirection direction) OVERRIDE; | 292 base::i18n::TextDirection direction) OVERRIDE; |
293 virtual void ExtendSelectionAndDelete(size_t before, size_t after) OVERRIDE; | 293 virtual void ExtendSelectionAndDelete(size_t before, size_t after) OVERRIDE; |
294 virtual void EnsureCaretInRect(const gfx::Rect& rect) OVERRIDE; | 294 virtual void EnsureCaretInRect(const gfx::Rect& rect) OVERRIDE; |
295 virtual void OnCandidateWindowShown() OVERRIDE; | 295 virtual void OnCandidateWindowShown() OVERRIDE; |
296 virtual void OnCandidateWindowUpdated() OVERRIDE; | 296 virtual void OnCandidateWindowUpdated() OVERRIDE; |
297 virtual void OnCandidateWindowHidden() OVERRIDE; | 297 virtual void OnCandidateWindowHidden() OVERRIDE; |
298 | 298 |
299 protected: | 299 protected: |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
509 // support SELECT popups which are closed when they are deactivated). | 509 // support SELECT popups which are closed when they are deactivated). |
510 bool close_on_deactivate_; | 510 bool close_on_deactivate_; |
511 | 511 |
512 // Whether Destroy() has been called. Used to detect a crasher | 512 // Whether Destroy() has been called. Used to detect a crasher |
513 // (http://crbug.com/24248) where render_view_host_ has been deleted when | 513 // (http://crbug.com/24248) where render_view_host_ has been deleted when |
514 // OnFinalMessage is called. | 514 // OnFinalMessage is called. |
515 bool being_destroyed_; | 515 bool being_destroyed_; |
516 | 516 |
517 // Tooltips | 517 // Tooltips |
518 // The text to be shown in the tooltip, supplied by the renderer. | 518 // The text to be shown in the tooltip, supplied by the renderer. |
519 string16 tooltip_text_; | 519 base::string16 tooltip_text_; |
520 // The tooltip control hwnd | 520 // The tooltip control hwnd |
521 HWND tooltip_hwnd_; | 521 HWND tooltip_hwnd_; |
522 // Whether or not a tooltip is currently visible. We use this to track | 522 // Whether or not a tooltip is currently visible. We use this to track |
523 // whether or not we want to force-close the tooltip when we receive mouse | 523 // whether or not we want to force-close the tooltip when we receive mouse |
524 // move notifications from the renderer. See comment in OnMsgSetTooltipText. | 524 // move notifications from the renderer. See comment in OnMsgSetTooltipText. |
525 bool tooltip_showing_; | 525 bool tooltip_showing_; |
526 | 526 |
527 // Factory used to safely scope delayed calls to ShutdownHost(). | 527 // Factory used to safely scope delayed calls to ShutdownHost(). |
528 base::WeakPtrFactory<RenderWidgetHostViewWin> weak_factory_; | 528 base::WeakPtrFactory<RenderWidgetHostViewWin> weak_factory_; |
529 | 529 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
607 base::win::ScopedComPtr<IAccessible> window_iaccessible_; | 607 base::win::ScopedComPtr<IAccessible> window_iaccessible_; |
608 | 608 |
609 ui::LatencyInfo software_latency_info_; | 609 ui::LatencyInfo software_latency_info_; |
610 | 610 |
611 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); | 611 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); |
612 }; | 612 }; |
613 | 613 |
614 } // namespace content | 614 } // namespace content |
615 | 615 |
616 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ | 616 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ |
OLD | NEW |