| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.TIT | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.TIT |
| 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_GTK_BOOKMARK_MANAGER_GTK_H_ | 5 #ifndef CHROME_BROWSER_GTK_BOOKMARK_MANAGER_GTK_H_ |
| 6 #define CHROME_BROWSER_GTK_BOOKMARK_MANAGER_GTK_H_ | 6 #define CHROME_BROWSER_GTK_BOOKMARK_MANAGER_GTK_H_ |
| 7 | 7 |
| 8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 | 320 |
| 321 // |window_|'s current position and size. | 321 // |window_|'s current position and size. |
| 322 gfx::Rect window_bounds_; | 322 gfx::Rect window_bounds_; |
| 323 | 323 |
| 324 // Flags describing |window_|'s current state. | 324 // Flags describing |window_|'s current state. |
| 325 GdkWindowState window_state_; | 325 GdkWindowState window_state_; |
| 326 | 326 |
| 327 // The Organize menu item. | 327 // The Organize menu item. |
| 328 GtkWidget* organize_; | 328 GtkWidget* organize_; |
| 329 // The submenu the item pops up. | 329 // The submenu the item pops up. |
| 330 #if defined(TOOLKIT_GTK) |
| 330 scoped_ptr<BookmarkContextMenu> organize_menu_; | 331 scoped_ptr<BookmarkContextMenu> organize_menu_; |
| 332 #endif |
| 331 // Whether the menu refers to the left selection. | 333 // Whether the menu refers to the left selection. |
| 332 bool organize_is_for_left_; | 334 bool organize_is_for_left_; |
| 333 | 335 |
| 334 // Factory used for delaying search. | 336 // Factory used for delaying search. |
| 335 ScopedRunnableMethodFactory<BookmarkManagerGtk> search_factory_; | 337 ScopedRunnableMethodFactory<BookmarkManagerGtk> search_factory_; |
| 336 | 338 |
| 337 scoped_refptr<SelectFileDialog> select_file_dialog_; | 339 scoped_refptr<SelectFileDialog> select_file_dialog_; |
| 338 | 340 |
| 339 // These variables are used for the workaround for http://crbug.com/15240. | 341 // These variables are used for the workaround for http://crbug.com/15240. |
| 340 // The last mouse down we got. Only valid while |delaying_mousedown| is true. | 342 // The last mouse down we got. Only valid while |delaying_mousedown| is true. |
| 341 GdkEventButton mousedown_event_; | 343 GdkEventButton mousedown_event_; |
| 342 bool delaying_mousedown_; | 344 bool delaying_mousedown_; |
| 343 // This is true while we are propagating a delayed mousedown. It is used to | 345 // This is true while we are propagating a delayed mousedown. It is used to |
| 344 // tell the button press handler to ignore the event. | 346 // tell the button press handler to ignore the event. |
| 345 bool sending_delayed_mousedown_; | 347 bool sending_delayed_mousedown_; |
| 346 | 348 |
| 347 // This is used to avoid recursively calling our right click handler. It is | 349 // This is used to avoid recursively calling our right click handler. It is |
| 348 // only true when a right click is already being handled. | 350 // only true when a right click is already being handled. |
| 349 bool ignore_rightclicks_; | 351 bool ignore_rightclicks_; |
| 350 | 352 |
| 351 GtkAccelGroup* accel_group_; | 353 GtkAccelGroup* accel_group_; |
| 352 }; | 354 }; |
| 353 | 355 |
| 354 #endif // CHROME_BROWSER_GTK_BOOKMARK_MANAGER_GTK_H_ | 356 #endif // CHROME_BROWSER_GTK_BOOKMARK_MANAGER_GTK_H_ |
| OLD | NEW |