OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_WIN_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ | 6 #define CHROME_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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 const gfx::Rect& scroll_rect, int scroll_dx, int scroll_dy, | 149 const gfx::Rect& scroll_rect, int scroll_dx, int scroll_dy, |
150 const std::vector<gfx::Rect>& copy_rects); | 150 const std::vector<gfx::Rect>& copy_rects); |
151 virtual void RenderViewGone(); | 151 virtual void RenderViewGone(); |
152 virtual void WillWmDestroy(); // called by TabContents before DestroyWindow | 152 virtual void WillWmDestroy(); // called by TabContents before DestroyWindow |
153 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh); | 153 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh); |
154 virtual void Destroy(); | 154 virtual void Destroy(); |
155 virtual void SetTooltipText(const std::wstring& tooltip_text); | 155 virtual void SetTooltipText(const std::wstring& tooltip_text); |
156 virtual BackingStore* AllocBackingStore(const gfx::Size& size); | 156 virtual BackingStore* AllocBackingStore(const gfx::Size& size); |
157 virtual void SetBackground(const SkBitmap& background); | 157 virtual void SetBackground(const SkBitmap& background); |
158 virtual bool ContainsNativeView(gfx::NativeView native_view) const; | 158 virtual bool ContainsNativeView(gfx::NativeView native_view) const; |
159 virtual void SetVisuallyDeemphasized(bool deemphasized); | 159 virtual void SetVisuallyDeemphasized(const SkColor* color, bool animate); |
160 | 160 |
161 virtual gfx::PluginWindowHandle GetCompositorHostWindow(); | 161 virtual gfx::PluginWindowHandle GetCompositorHostWindow(); |
162 virtual void ShowCompositorHostWindow(bool show); | 162 virtual void ShowCompositorHostWindow(bool show); |
163 | 163 |
164 virtual void OnAccessibilityNotifications( | 164 virtual void OnAccessibilityNotifications( |
165 const std::vector<ViewHostMsg_AccessibilityNotification_Params>& params); | 165 const std::vector<ViewHostMsg_AccessibilityNotification_Params>& params); |
166 | 166 |
167 // Implementation of NotificationObserver: | 167 // Implementation of NotificationObserver: |
168 virtual void Observe(NotificationType type, | 168 virtual void Observe(NotificationType type, |
169 const NotificationSource& source, | 169 const NotificationSource& source, |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 scoped_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; | 331 scoped_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; |
332 | 332 |
333 // The time at which this view started displaying white pixels as a result of | 333 // The time at which this view started displaying white pixels as a result of |
334 // not having anything to paint (empty backing store from renderer). This | 334 // not having anything to paint (empty backing store from renderer). This |
335 // value returns true for is_null() if we are not recording whiteout times. | 335 // value returns true for is_null() if we are not recording whiteout times. |
336 base::TimeTicks whiteout_start_time_; | 336 base::TimeTicks whiteout_start_time_; |
337 | 337 |
338 // The time it took after this view was selected for it to be fully painted. | 338 // The time it took after this view was selected for it to be fully painted. |
339 base::TimeTicks tab_switch_paint_time_; | 339 base::TimeTicks tab_switch_paint_time_; |
340 | 340 |
341 // True if we are showing a constrained window. We will grey out the view | 341 // A color we use to shade the entire render view. If 100% transparent, we do |
342 // whenever we paint. | 342 // not shade the render view. |
343 bool visually_deemphasized_; | 343 SkColor overlay_color_; |
344 | 344 |
345 // Registrar so we can listen to RENDERER_PROCESS_TERMINATED events. | 345 // Registrar so we can listen to RENDERER_PROCESS_TERMINATED events. |
346 NotificationRegistrar registrar_; | 346 NotificationRegistrar registrar_; |
347 | 347 |
348 // Stores the current text input type received by ImeUpdateTextInputState() | 348 // Stores the current text input type received by ImeUpdateTextInputState() |
349 // method. | 349 // method. |
350 WebKit::WebTextInputType text_input_type_; | 350 WebKit::WebTextInputType text_input_type_; |
351 | 351 |
352 ScopedVector<app::ViewProp> props_; | 352 ScopedVector<app::ViewProp> props_; |
353 | 353 |
354 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); | 354 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); |
355 }; | 355 }; |
356 | 356 |
357 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ | 357 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ |
OLD | NEW |