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_GTK_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <gdk/gdk.h> | 9 #include <gdk/gdk.h> |
10 | 10 |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 | 193 |
194 // Do initialization needed just by InitAsPopup() and InitAsFullscreen(). | 194 // Do initialization needed just by InitAsPopup() and InitAsFullscreen(). |
195 // We move and resize |window| to |bounds| and show it and its contents. | 195 // We move and resize |window| to |bounds| and show it and its contents. |
196 void DoPopupOrFullscreenInit(GtkWindow* window, const gfx::Rect& bounds); | 196 void DoPopupOrFullscreenInit(GtkWindow* window, const gfx::Rect& bounds); |
197 | 197 |
198 // Update the display cursor for the render view. | 198 // Update the display cursor for the render view. |
199 void ShowCurrentCursor(); | 199 void ShowCurrentCursor(); |
200 | 200 |
201 void set_last_mouse_down(GdkEventButton* event); | 201 void set_last_mouse_down(GdkEventButton* event); |
202 | 202 |
| 203 // Cause the next query for the widget center to recompute the cached value. |
| 204 void MarkCachedWidgetCenterStale(); |
| 205 |
203 gfx::Point GetWidgetCenter(); | 206 gfx::Point GetWidgetCenter(); |
204 | 207 |
205 // The model object. | 208 // The model object. |
206 content::RenderWidgetHostImpl* host_; | 209 content::RenderWidgetHostImpl* host_; |
207 | 210 |
208 // The native UI widget. | 211 // The native UI widget. |
209 ui::OwnedWidgetGtk view_; | 212 ui::OwnedWidgetGtk view_; |
210 | 213 |
211 // This is true when we are currently painting and thus should handle extra | 214 // This is true when we are currently painting and thus should handle extra |
212 // paint requests by expanding the invalid rect rather than actually | 215 // paint requests by expanding the invalid rect rather than actually |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 GdkEventButton* last_mouse_down_; | 307 GdkEventButton* last_mouse_down_; |
305 | 308 |
306 // Instance of accessibility information for the root of the AtkObject | 309 // Instance of accessibility information for the root of the AtkObject |
307 // tree representation of the WebKit render tree. | 310 // tree representation of the WebKit render tree. |
308 scoped_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; | 311 scoped_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; |
309 | 312 |
310 ui::GtkSignalRegistrar signals_; | 313 ui::GtkSignalRegistrar signals_; |
311 }; | 314 }; |
312 | 315 |
313 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ | 316 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ |
OLD | NEW |