| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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_GTK_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ |
| 7 | 7 |
| 8 #include <gdk/gdk.h> | 8 #include <gdk/gdk.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 WebCursor current_cursor_; | 113 WebCursor current_cursor_; |
| 114 | 114 |
| 115 // Whether we are showing a context menu. | 115 // Whether we are showing a context menu. |
| 116 bool is_showing_context_menu_; | 116 bool is_showing_context_menu_; |
| 117 | 117 |
| 118 // The time at which this view started displaying white pixels as a result of | 118 // The time at which this view started displaying white pixels as a result of |
| 119 // not having anything to paint (empty backing store from renderer). This | 119 // not having anything to paint (empty backing store from renderer). This |
| 120 // value returns true for is_null() if we are not recording whiteout times. | 120 // value returns true for is_null() if we are not recording whiteout times. |
| 121 base::TimeTicks whiteout_start_time_; | 121 base::TimeTicks whiteout_start_time_; |
| 122 | 122 |
| 123 // The time it took after this view was selected for it to be fully painted. |
| 124 base::TimeTicks tab_switch_paint_time_; |
| 125 |
| 123 // Variables used only for popups -------------------------------------------- | 126 // Variables used only for popups -------------------------------------------- |
| 124 // Our parent widget. | 127 // Our parent widget. |
| 125 RenderWidgetHostView* parent_host_view_; | 128 RenderWidgetHostView* parent_host_view_; |
| 126 // The native view of our parent, equivalent to | 129 // The native view of our parent, equivalent to |
| 127 // parent_host_view_->GetNativeView(). | 130 // parent_host_view_->GetNativeView(). |
| 128 GtkWidget* parent_; | 131 GtkWidget* parent_; |
| 129 // We ignore the first mouse release on popups. This allows the popup to | 132 // We ignore the first mouse release on popups. This allows the popup to |
| 130 // stay open. | 133 // stay open. |
| 131 bool is_popup_first_mouse_release_; | 134 bool is_popup_first_mouse_release_; |
| 132 | 135 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 143 | 146 |
| 144 // Helper class that lets us allocate plugin containers and move them. | 147 // Helper class that lets us allocate plugin containers and move them. |
| 145 GtkPluginContainerManager plugin_container_manager_; | 148 GtkPluginContainerManager plugin_container_manager_; |
| 146 | 149 |
| 147 // The size that we want the renderer to be. We keep this in a separate | 150 // The size that we want the renderer to be. We keep this in a separate |
| 148 // variable because resizing in GTK+ is async. | 151 // variable because resizing in GTK+ is async. |
| 149 gfx::Size requested_size_; | 152 gfx::Size requested_size_; |
| 150 }; | 153 }; |
| 151 | 154 |
| 152 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ | 155 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ |
| OLD | NEW |