| 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 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 GtkWidget* parent_; | 94 GtkWidget* parent_; |
| 95 // We connect to the parent's focus out event. When we are destroyed, we need | 95 // We connect to the parent's focus out event. When we are destroyed, we need |
| 96 // to remove this handler, so we must keep track of its id. | 96 // to remove this handler, so we must keep track of its id. |
| 97 gulong popup_signal_id_; | 97 gulong popup_signal_id_; |
| 98 // This variable determines our degree of control over user input. If we are | 98 // This variable determines our degree of control over user input. If we are |
| 99 // activatable, we must grab and handle all user input. If we are not | 99 // activatable, we must grab and handle all user input. If we are not |
| 100 // activatable, then our parent render view retains more control. Example of | 100 // activatable, then our parent render view retains more control. Example of |
| 101 // activatable popup: <select> dropdown. Example of non-activatable popup: | 101 // activatable popup: <select> dropdown. Example of non-activatable popup: |
| 102 // form autocomplete. | 102 // form autocomplete. |
| 103 bool activatable_; | 103 bool activatable_; |
| 104 // This is true when we are currently painting and thus should handle extra |
| 105 // paint requests by expanding the invalid rect rather than actually |
| 106 // painting. |
| 107 bool about_to_validate_and_paint_; |
| 108 // This is the rectangle which we'll paint. |
| 109 gfx::Rect invalid_rect_; |
| 104 | 110 |
| 105 // Whether we are currently loading. | 111 // Whether we are currently loading. |
| 106 bool is_loading_; | 112 bool is_loading_; |
| 107 | 113 |
| 108 // The cursor for the page. This is passed up from the renderer. | 114 // The cursor for the page. This is passed up from the renderer. |
| 109 WebCursor current_cursor_; | 115 WebCursor current_cursor_; |
| 110 }; | 116 }; |
| 111 | 117 |
| 112 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ | 118 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ |
| OLD | NEW |