| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_UI_LIBGTKUI_GCONF_LISTENER_H_ | 5 #ifndef CHROME_BROWSER_UI_LIBGTKUI_GCONF_LISTENER_H_ |
| 6 #define CHROME_BROWSER_UI_LIBGTKUI_GCONF_LISTENER_H_ | 6 #define CHROME_BROWSER_UI_LIBGTKUI_GCONF_LISTENER_H_ |
| 7 | 7 |
| 8 #include <gconf/gconf-client.h> | 8 #include <gconf/gconf-client.h> |
| 9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
| 10 | 10 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 // to GConf and reverts to default mode. | 39 // to GConf and reverts to default mode. |
| 40 bool HandleGError(GError* error, const char* key); | 40 bool HandleGError(GError* error, const char* key); |
| 41 | 41 |
| 42 // Parses the return data structure from GConf, falling back to the default | 42 // Parses the return data structure from GConf, falling back to the default |
| 43 // value on any error. | 43 // value on any error. |
| 44 void ParseAndStoreButtonValue(GConfValue* gconf_value); | 44 void ParseAndStoreButtonValue(GConfValue* gconf_value); |
| 45 void ParseAndStoreMiddleClickValue(GConfValue* gconf_value); | 45 void ParseAndStoreMiddleClickValue(GConfValue* gconf_value); |
| 46 | 46 |
| 47 GtkUi* delegate_; | 47 GtkUi* delegate_; |
| 48 | 48 |
| 49 // Pointer to our gconf context. NULL if we aren't on a desktop that uses | 49 // Pointer to our gconf context. nullptr if we aren't on a desktop that uses |
| 50 // gconf. | 50 // gconf. |
| 51 GConfClient* client_; | 51 GConfClient* client_; |
| 52 | 52 |
| 53 DISALLOW_COPY_AND_ASSIGN(GConfListener); | 53 DISALLOW_COPY_AND_ASSIGN(GConfListener); |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 } // namespace libgtkui | 56 } // namespace libgtkui |
| 57 | 57 |
| 58 #endif // CHROME_BROWSER_UI_LIBGTKUI_GCONF_LISTENER_H_ | 58 #endif // CHROME_BROWSER_UI_LIBGTKUI_GCONF_LISTENER_H_ |
| OLD | NEW |