OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <gdk/gdk.h> | 9 #include <gdk/gdk.h> |
10 | 10 |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
204 // The animation used for the abovementioned shade effect. The animation's | 204 // The animation used for the abovementioned shade effect. The animation's |
205 // value affects the alpha we use for |overlay_color_|. | 205 // value affects the alpha we use for |overlay_color_|. |
206 ui::SlideAnimation overlay_animation_; | 206 ui::SlideAnimation overlay_animation_; |
207 | 207 |
208 // The native view of our parent widget. Used only for popups. | 208 // The native view of our parent widget. Used only for popups. |
209 GtkWidget* parent_; | 209 GtkWidget* parent_; |
210 | 210 |
211 // We ignore the first mouse release on popups so the popup will remain open. | 211 // We ignore the first mouse release on popups so the popup will remain open. |
212 bool is_popup_first_mouse_release_; | 212 bool is_popup_first_mouse_release_; |
213 | 213 |
214 // Whether or not this widget was focused before shadowed by another widget. | 214 // Whether or not this widget's input context was focused before shadowed by |
Evan Stade
2011/08/04 16:47:28
before being shadowed
kinaba
2011/08/05 03:35:33
Done.
| |
215 // Used in OnGrabNotify() handler to track the focused state correctly. | 215 // another widget. Used in OnGrabNotify() handler to track the focused state |
216 bool was_focused_before_grab_; | 216 // correctly. |
217 bool was_imcontext_focused_before_grab_; | |
217 | 218 |
218 // True if we are responsible for creating an X grab. This will only be used | 219 // True if we are responsible for creating an X grab. This will only be used |
219 // for <select> dropdowns. It should be true for most such cases, but false | 220 // for <select> dropdowns. It should be true for most such cases, but false |
220 // for extension popups. | 221 // for extension popups. |
221 bool do_x_grab_; | 222 bool do_x_grab_; |
222 | 223 |
223 // Is the widget fullscreen? | 224 // Is the widget fullscreen? |
224 bool is_fullscreen_; | 225 bool is_fullscreen_; |
225 | 226 |
226 // For full-screen windows we have a OnDestroy handler that we need to remove, | 227 // For full-screen windows we have a OnDestroy handler that we need to remove, |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
259 // menus and drags. | 260 // menus and drags. |
260 GdkEventButton* last_mouse_down_; | 261 GdkEventButton* last_mouse_down_; |
261 | 262 |
262 #if defined(OS_CHROMEOS) | 263 #if defined(OS_CHROMEOS) |
263 // Custimized tooltip window. | 264 // Custimized tooltip window. |
264 scoped_ptr<views::TooltipWindowGtk> tooltip_window_; | 265 scoped_ptr<views::TooltipWindowGtk> tooltip_window_; |
265 #endif // defined(OS_CHROMEOS) | 266 #endif // defined(OS_CHROMEOS) |
266 }; | 267 }; |
267 | 268 |
268 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ | 269 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ |
OLD | NEW |