| 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_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_SUMMARY_PANEL_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_SUMMARY_PANEL_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_SUMMARY_PANEL_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_SUMMARY_PANEL_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "chrome/browser/ui/views/apps/app_info_dialog/app_info_panel.h" | 10 #include "chrome/browser/ui/views/apps/app_info_dialog/app_info_panel.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 private: | 36 private: |
| 37 // Internal initialisation methods. | 37 // Internal initialisation methods. |
| 38 void CreateDescriptionControl(); | 38 void CreateDescriptionControl(); |
| 39 void CreateDetailsControl(); | 39 void CreateDetailsControl(); |
| 40 void CreateLaunchOptionControl(); | 40 void CreateLaunchOptionControl(); |
| 41 | 41 |
| 42 void LayoutDescriptionControl(); | 42 void LayoutDescriptionControl(); |
| 43 void LayoutDetailsControl(); | 43 void LayoutDetailsControl(); |
| 44 | 44 |
| 45 // Overridden from views::ComboboxListener: | 45 // Overridden from views::ComboboxListener: |
| 46 virtual void OnPerformAction(views::Combobox* combobox) OVERRIDE; | 46 virtual void OnPerformAction(views::Combobox* combobox) override; |
| 47 | 47 |
| 48 // Called asynchronously to calculate and update the size of the app displayed | 48 // Called asynchronously to calculate and update the size of the app displayed |
| 49 // in the dialog. | 49 // in the dialog. |
| 50 void StartCalculatingAppSize(); | 50 void StartCalculatingAppSize(); |
| 51 void OnAppSizeCalculated(int64 app_size_in_bytes); | 51 void OnAppSizeCalculated(int64 app_size_in_bytes); |
| 52 | 52 |
| 53 // Returns the time this app was installed. | 53 // Returns the time this app was installed. |
| 54 base::Time GetInstalledTime() const; | 54 base::Time GetInstalledTime() const; |
| 55 | 55 |
| 56 // Returns the time the app was last launched, or base::Time() if it's never | 56 // Returns the time the app was last launched, or base::Time() if it's never |
| (...skipping 24 matching lines...) Expand all Loading... |
| 81 | 81 |
| 82 scoped_ptr<LaunchOptionsComboboxModel> launch_options_combobox_model_; | 82 scoped_ptr<LaunchOptionsComboboxModel> launch_options_combobox_model_; |
| 83 views::Combobox* launch_options_combobox_; | 83 views::Combobox* launch_options_combobox_; |
| 84 | 84 |
| 85 base::WeakPtrFactory<AppInfoSummaryPanel> weak_ptr_factory_; | 85 base::WeakPtrFactory<AppInfoSummaryPanel> weak_ptr_factory_; |
| 86 | 86 |
| 87 DISALLOW_COPY_AND_ASSIGN(AppInfoSummaryPanel); | 87 DISALLOW_COPY_AND_ASSIGN(AppInfoSummaryPanel); |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 #endif // CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_SUMMARY_PANEL_H
_ | 90 #endif // CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_SUMMARY_PANEL_H
_ |
| OLD | NEW |