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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <atlbase.h> | 9 #include <atlbase.h> |
10 #include <atlapp.h> | 10 #include <atlapp.h> |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 bool can_compose_inline) OVERRIDE; | 188 bool can_compose_inline) OVERRIDE; |
189 virtual void SelectionBoundsChanged(const gfx::Rect& start_rect, | 189 virtual void SelectionBoundsChanged(const gfx::Rect& start_rect, |
190 const gfx::Rect& end_rect) OVERRIDE; | 190 const gfx::Rect& end_rect) OVERRIDE; |
191 virtual void ImeCancelComposition() OVERRIDE; | 191 virtual void ImeCancelComposition() OVERRIDE; |
192 virtual void ImeCompositionRangeChanged(const ui::Range& range) OVERRIDE; | 192 virtual void ImeCompositionRangeChanged(const ui::Range& range) OVERRIDE; |
193 virtual void DidUpdateBackingStore( | 193 virtual void DidUpdateBackingStore( |
194 const gfx::Rect& scroll_rect, int scroll_dx, int scroll_dy, | 194 const gfx::Rect& scroll_rect, int scroll_dx, int scroll_dy, |
195 const std::vector<gfx::Rect>& copy_rects) OVERRIDE; | 195 const std::vector<gfx::Rect>& copy_rects) OVERRIDE; |
196 virtual void RenderViewGone(base::TerminationStatus status, | 196 virtual void RenderViewGone(base::TerminationStatus status, |
197 int error_code) OVERRIDE; | 197 int error_code) OVERRIDE; |
198 // called by TabContents before DestroyWindow | 198 // called by WebContentsImpl before DestroyWindow |
199 virtual void WillWmDestroy() OVERRIDE; | 199 virtual void WillWmDestroy() OVERRIDE; |
200 virtual void Destroy() OVERRIDE; | 200 virtual void Destroy() OVERRIDE; |
201 virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE; | 201 virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE; |
202 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; | 202 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; |
203 virtual bool CopyFromCompositingSurface( | 203 virtual bool CopyFromCompositingSurface( |
204 const gfx::Size& size, | 204 const gfx::Size& size, |
205 skia::PlatformCanvas* output) OVERRIDE; | 205 skia::PlatformCanvas* output) OVERRIDE; |
206 virtual void AsyncCopyFromCompositingSurface( | 206 virtual void AsyncCopyFromCompositingSurface( |
207 const gfx::Size& size, | 207 const gfx::Size& size, |
208 skia::PlatformCanvas* output, | 208 skia::PlatformCanvas* output, |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
500 // hidden to prevent getting messages (Paint, Resize...), and we reattach | 500 // hidden to prevent getting messages (Paint, Resize...), and we reattach |
501 // when shown again. | 501 // when shown again. |
502 HWND parent_hwnd_; | 502 HWND parent_hwnd_; |
503 | 503 |
504 // The time at which this view started displaying white pixels as a result of | 504 // The time at which this view started displaying white pixels as a result of |
505 // not having anything to paint (empty backing store from renderer). This | 505 // not having anything to paint (empty backing store from renderer). This |
506 // value returns true for is_null() if we are not recording whiteout times. | 506 // value returns true for is_null() if we are not recording whiteout times. |
507 base::TimeTicks whiteout_start_time_; | 507 base::TimeTicks whiteout_start_time_; |
508 | 508 |
509 // The time it took after this view was selected for it to be fully painted. | 509 // The time it took after this view was selected for it to be fully painted. |
510 base::TimeTicks tab_switch_paint_time_; | 510 base::TimeTicks web_contents_switch_paint_time_; |
511 | 511 |
512 // Registrar so we can listen to RENDERER_PROCESS_TERMINATED events. | 512 // Registrar so we can listen to RENDERER_PROCESS_TERMINATED events. |
513 content::NotificationRegistrar registrar_; | 513 content::NotificationRegistrar registrar_; |
514 | 514 |
515 // Stores the current text input type received by TextInputStateChanged() | 515 // Stores the current text input type received by TextInputStateChanged() |
516 // method. | 516 // method. |
517 ui::TextInputType text_input_type_; | 517 ui::TextInputType text_input_type_; |
518 | 518 |
519 ScopedVector<ui::ViewProp> props_; | 519 ScopedVector<ui::ViewProp> props_; |
520 | 520 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
573 | 573 |
574 // Are touch events currently enabled? | 574 // Are touch events currently enabled? |
575 bool touch_events_enabled_; | 575 bool touch_events_enabled_; |
576 | 576 |
577 gfx::ScopedSysColorChangeListener sys_color_change_listener_; | 577 gfx::ScopedSysColorChangeListener sys_color_change_listener_; |
578 | 578 |
579 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); | 579 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); |
580 }; | 580 }; |
581 | 581 |
582 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ | 582 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ |
OLD | NEW |