| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // This is the GTK implementation of the Chrome To Mobile bubble, the transient | 5 // This is the GTK implementation of the Chrome To Mobile bubble, the transient |
| 6 // bubble presented to send URLs and MHTML snapshots to a mobile device. There | 6 // bubble presented to send URLs and MHTML snapshots to a mobile device. There |
| 7 // can only ever be a single bubble open, so the class presents only static | 7 // can only ever be a single bubble open, so the class presents only static |
| 8 // methods, and handles the singleton behavior for you. It also handles the | 8 // methods, and handles the singleton behavior for you. It also handles the |
| 9 // object and widget lifetimes, destroying everything when the bubble is closed. | 9 // object and widget lifetimes, destroying everything when the bubble is closed. |
| 10 | 10 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 CHROMEGTK_CALLBACK_0(ChromeToMobileBubbleGtk, void, OnRadioToggled); | 72 CHROMEGTK_CALLBACK_0(ChromeToMobileBubbleGtk, void, OnRadioToggled); |
| 73 CHROMEGTK_CALLBACK_0(ChromeToMobileBubbleGtk, void, OnCancelClicked); | 73 CHROMEGTK_CALLBACK_0(ChromeToMobileBubbleGtk, void, OnCancelClicked); |
| 74 CHROMEGTK_CALLBACK_0(ChromeToMobileBubbleGtk, void, OnSendClicked); | 74 CHROMEGTK_CALLBACK_0(ChromeToMobileBubbleGtk, void, OnSendClicked); |
| 75 | 75 |
| 76 base::WeakPtrFactory<ChromeToMobileBubbleGtk> weak_ptr_factory_; | 76 base::WeakPtrFactory<ChromeToMobileBubbleGtk> weak_ptr_factory_; |
| 77 | 77 |
| 78 // The Chrome To Mobile service associated with this bubble. | 78 // The Chrome To Mobile service associated with this bubble. |
| 79 ChromeToMobileService* service_; | 79 ChromeToMobileService* service_; |
| 80 | 80 |
| 81 // Support members for getting theme colors and theme change notifications. | 81 // Support members for getting theme colors and theme change notifications. |
| 82 ThemeServiceGtk* theme_service_; | 82 GtkThemeService* theme_service_; |
| 83 content::NotificationRegistrar registrar_; | 83 content::NotificationRegistrar registrar_; |
| 84 | 84 |
| 85 // The file path for the MHTML page snapshot. | 85 // The file path for the MHTML page snapshot. |
| 86 FilePath snapshot_path_; | 86 FilePath snapshot_path_; |
| 87 | 87 |
| 88 // A map of radio buttons for each mobile device to the device's information. | 88 // A map of radio buttons for each mobile device to the device's information. |
| 89 typedef std::map<GtkWidget*, base::DictionaryValue*> MobileMap; | 89 typedef std::map<GtkWidget*, base::DictionaryValue*> MobileMap; |
| 90 MobileMap mobile_map_; | 90 MobileMap mobile_map_; |
| 91 | 91 |
| 92 // The currently selected (or solitary) mobile device's info. | 92 // The currently selected (or solitary) mobile device's info. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 106 // The actual BubbleGtk shown by this class and its content. | 106 // The actual BubbleGtk shown by this class and its content. |
| 107 BubbleGtk* bubble_; | 107 BubbleGtk* bubble_; |
| 108 | 108 |
| 109 // An animation used to cycle through the "Sending..." status messages. | 109 // An animation used to cycle through the "Sending..." status messages. |
| 110 scoped_ptr<ui::ThrobAnimation> progress_animation_; | 110 scoped_ptr<ui::ThrobAnimation> progress_animation_; |
| 111 | 111 |
| 112 DISALLOW_COPY_AND_ASSIGN(ChromeToMobileBubbleGtk); | 112 DISALLOW_COPY_AND_ASSIGN(ChromeToMobileBubbleGtk); |
| 113 }; | 113 }; |
| 114 | 114 |
| 115 #endif // CHROME_BROWSER_UI_GTK_CHROME_TO_MOBILE_BUBBLE_GTK_H_ | 115 #endif // CHROME_BROWSER_UI_GTK_CHROME_TO_MOBILE_BUBBLE_GTK_H_ |
| OLD | NEW |