| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_OPTIONS_GEOLOCATION_CONTENT_EXCEPTIONS_WINDOW_H_ | 5 #ifndef CHROME_BROWSER_GTK_OPTIONS_GEOLOCATION_CONTENT_EXCEPTIONS_WINDOW_H_ |
| 6 #define CHROME_BROWSER_GTK_OPTIONS_GEOLOCATION_CONTENT_EXCEPTIONS_WINDOW_H_ | 6 #define CHROME_BROWSER_GTK_OPTIONS_GEOLOCATION_CONTENT_EXCEPTIONS_WINDOW_H_ |
| 7 | 7 |
| 8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
| 9 | 9 |
| 10 #include <set> | 10 #include <set> |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 COL_ACTION, | 34 COL_ACTION, |
| 35 COL_COUNT | 35 COL_COUNT |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 GeolocationContentExceptionsWindow(GtkWindow* parent, | 38 GeolocationContentExceptionsWindow(GtkWindow* parent, |
| 39 GeolocationContentSettingsMap* map); | 39 GeolocationContentSettingsMap* map); |
| 40 | 40 |
| 41 // Updates which buttons are enabled. | 41 // Updates which buttons are enabled. |
| 42 void UpdateButtonState(); | 42 void UpdateButtonState(); |
| 43 | 43 |
| 44 // Populate |indicies| with the currently selected rows that are removable. | 44 void GetSelectedRows(GeolocationContentSettingsTableModel::Rows* rows); |
| 45 void GetSelectedRemovableIndicies(std::set<int>* indicies); | |
| 46 | |
| 47 // Return the number of selected rows which can be removed. | |
| 48 int CountSelectedRemovable(); | |
| 49 | 45 |
| 50 // Callbacks for the buttons. | 46 // Callbacks for the buttons. |
| 51 CHROMEGTK_CALLBACK_0(GeolocationContentExceptionsWindow, void, Remove); | 47 CHROMEGTK_CALLBACK_0(GeolocationContentExceptionsWindow, void, Remove); |
| 52 CHROMEGTK_CALLBACK_0(GeolocationContentExceptionsWindow, void, RemoveAll); | 48 CHROMEGTK_CALLBACK_0(GeolocationContentExceptionsWindow, void, RemoveAll); |
| 53 | 49 |
| 54 CHROMEGTK_CALLBACK_0(GeolocationContentExceptionsWindow, void, | 50 CHROMEGTK_CALLBACK_0(GeolocationContentExceptionsWindow, void, |
| 55 OnWindowDestroy); | 51 OnWindowDestroy); |
| 56 CHROMEGTK_CALLBACK_0(GeolocationContentExceptionsWindow, void, | 52 CHROMEGTK_CALLBACK_0(GeolocationContentExceptionsWindow, void, |
| 57 OnTreeSelectionChanged); | 53 OnTreeSelectionChanged); |
| 58 | 54 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 75 | 71 |
| 76 // The current user selection from |treeview_|. | 72 // The current user selection from |treeview_|. |
| 77 GtkTreeSelection* treeview_selection_; | 73 GtkTreeSelection* treeview_selection_; |
| 78 | 74 |
| 79 // Buttons. | 75 // Buttons. |
| 80 GtkWidget* remove_button_; | 76 GtkWidget* remove_button_; |
| 81 GtkWidget* remove_all_button_; | 77 GtkWidget* remove_all_button_; |
| 82 }; | 78 }; |
| 83 | 79 |
| 84 #endif // CHROME_BROWSER_GTK_OPTIONS_GEOLOCATION_CONTENT_EXCEPTIONS_WINDOW_H_ | 80 #endif // CHROME_BROWSER_GTK_OPTIONS_GEOLOCATION_CONTENT_EXCEPTIONS_WINDOW_H_ |
| OLD | NEW |