| OLD | NEW |
| 1 // Copyright (c) 2010 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_GTK_FOCUS_STORE_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_FOCUS_STORE_GTK_H_ |
| 6 #define CHROME_BROWSER_GTK_FOCUS_STORE_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_FOCUS_STORE_GTK_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 | 10 |
| 11 typedef struct _GtkWidget GtkWidget; | 11 typedef struct _GtkWidget GtkWidget; |
| 12 | 12 |
| 13 class FocusStoreGtk { | 13 class FocusStoreGtk { |
| 14 public: | 14 public: |
| 15 FocusStoreGtk(); | 15 FocusStoreGtk(); |
| 16 | 16 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 33 GtkWidget* widget_; | 33 GtkWidget* widget_; |
| 34 | 34 |
| 35 // The widget for which we've stored focus might be destroyed by the time we | 35 // The widget for which we've stored focus might be destroyed by the time we |
| 36 // want to restore focus. Thus we connect to the "destroy" signal on that | 36 // want to restore focus. Thus we connect to the "destroy" signal on that |
| 37 // widget. This is the ID for the destroy handler. | 37 // widget. This is the ID for the destroy handler. |
| 38 unsigned int destroy_handler_id_; | 38 unsigned int destroy_handler_id_; |
| 39 | 39 |
| 40 DISALLOW_COPY_AND_ASSIGN(FocusStoreGtk); | 40 DISALLOW_COPY_AND_ASSIGN(FocusStoreGtk); |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 #endif // CHROME_BROWSER_GTK_FOCUS_STORE_GTK_H_ | 43 #endif // CHROME_BROWSER_UI_GTK_FOCUS_STORE_GTK_H_ |
| OLD | NEW |