Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: chrome/browser/chromeos/file_system_provider/notification_manager.h

Issue 687183004: Remove the OnError method from notification delegates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_CHROMEOS_FILE_SYSTEM_PROVIDER_NOTIFICATION_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_NOTIFICATION_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_NOTIFICATION_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_NOTIFICATION_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 29 matching lines...) Expand all
40 40
41 // NotificationManagerInterface overrides: 41 // NotificationManagerInterface overrides:
42 virtual void ShowUnresponsiveNotification( 42 virtual void ShowUnresponsiveNotification(
43 int id, 43 int id,
44 const NotificationCallback& callback) override; 44 const NotificationCallback& callback) override;
45 virtual void HideUnresponsiveNotification(int id) override; 45 virtual void HideUnresponsiveNotification(int id) override;
46 46
47 // Invoked when a button on the notification is clicked. 47 // Invoked when a button on the notification is clicked.
48 void OnButtonClick(int button_index); 48 void OnButtonClick(int button_index);
49 49
50 // Invoked when the notification failed to show up.
51 void OnError();
52
53 // Invoked when the notification got closed either by user or by system. 50 // Invoked when the notification got closed either by user or by system.
54 void OnClose(); 51 void OnClose();
55 52
56 // extensions::AppIconLoader::Delegate overrides: 53 // extensions::AppIconLoader::Delegate overrides:
57 virtual void SetAppImage(const std::string& id, 54 virtual void SetAppImage(const std::string& id,
58 const gfx::ImageSkia& image) override; 55 const gfx::ImageSkia& image) override;
59 56
60 private: 57 private:
61 typedef std::map<int, NotificationCallback> CallbackMap; 58 typedef std::map<int, NotificationCallback> CallbackMap;
62 59
(...skipping 10 matching lines...) Expand all
73 scoped_ptr<extensions::AppIconLoader> icon_loader_; 70 scoped_ptr<extensions::AppIconLoader> icon_loader_;
74 scoped_ptr<gfx::Image> extension_icon_; 71 scoped_ptr<gfx::Image> extension_icon_;
75 72
76 DISALLOW_COPY_AND_ASSIGN(NotificationManager); 73 DISALLOW_COPY_AND_ASSIGN(NotificationManager);
77 }; 74 };
78 75
79 } // namespace file_system_provider 76 } // namespace file_system_provider
80 } // namespace chromeos 77 } // namespace chromeos
81 78
82 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_NOTIFICATION_MANAGER_H_ 79 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_NOTIFICATION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698