| 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 UI_BASE_GTK_FOCUS_STORE_GTK_H_ | 5 #ifndef UI_BASE_GTK_FOCUS_STORE_GTK_H_ |
| 6 #define UI_BASE_GTK_FOCUS_STORE_GTK_H_ | 6 #define UI_BASE_GTK_FOCUS_STORE_GTK_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "ui/base/ui_export.h" | 9 #include "ui/base/ui_base_export.h" |
| 10 | 10 |
| 11 typedef struct _GtkWidget GtkWidget; | 11 typedef struct _GtkWidget GtkWidget; |
| 12 | 12 |
| 13 namespace ui { | 13 namespace ui { |
| 14 | 14 |
| 15 class UI_EXPORT FocusStoreGtk { | 15 class UI_BASE_EXPORT FocusStoreGtk { |
| 16 public: | 16 public: |
| 17 FocusStoreGtk(); | 17 FocusStoreGtk(); |
| 18 ~FocusStoreGtk(); | 18 ~FocusStoreGtk(); |
| 19 | 19 |
| 20 GtkWidget* widget() const { return widget_; } | 20 GtkWidget* widget() const { return widget_; } |
| 21 | 21 |
| 22 // Save the widget that is currently focused for |widget|'s toplevel (NOT | 22 // Save the widget that is currently focused for |widget|'s toplevel (NOT |
| 23 // |widget|). | 23 // |widget|). |
| 24 void Store(GtkWidget* widget); | 24 void Store(GtkWidget* widget); |
| 25 | 25 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 37 // want to restore focus. Thus we connect to the "destroy" signal on that | 37 // want to restore focus. Thus we connect to the "destroy" signal on that |
| 38 // widget. This is the ID for the destroy handler. | 38 // widget. This is the ID for the destroy handler. |
| 39 unsigned int destroy_handler_id_; | 39 unsigned int destroy_handler_id_; |
| 40 | 40 |
| 41 DISALLOW_COPY_AND_ASSIGN(FocusStoreGtk); | 41 DISALLOW_COPY_AND_ASSIGN(FocusStoreGtk); |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 } // namespace ui | 44 } // namespace ui |
| 45 | 45 |
| 46 #endif // UI_BASE_GTK_FOCUS_STORE_GTK_H_ | 46 #endif // UI_BASE_GTK_FOCUS_STORE_GTK_H_ |
| OLD | NEW |