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

Side by Side Diff: chrome/browser/android/media/media_throttle_infobar_delegate.h

Issue 1392913003: Add warning icon to media throttle info bar to make it consistent with others (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months 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
« no previous file with comments | « no previous file | chrome/browser/android/media/media_throttle_infobar_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_ANDROID_MEDIA_MEDIA_THROTTLE_INFOBAR_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_ANDROID_MEDIA_MEDIA_THROTTLE_INFOBAR_DELEGATE_H_
6 #define CHROME_BROWSER_ANDROID_MEDIA_MEDIA_THROTTLE_INFOBAR_DELEGATE_H_ 6 #define CHROME_BROWSER_ANDROID_MEDIA_MEDIA_THROTTLE_INFOBAR_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 13 matching lines...) Expand all
24 content::WebContents* web_contents, 24 content::WebContents* web_contents,
25 const DecodeRequestGrantedCallback& callback); 25 const DecodeRequestGrantedCallback& callback);
26 26
27 private: 27 private:
28 explicit MediaThrottleInfoBarDelegate( 28 explicit MediaThrottleInfoBarDelegate(
29 const DecodeRequestGrantedCallback& callback); 29 const DecodeRequestGrantedCallback& callback);
30 30
31 // ConfirmInfoBarDelegate: 31 // ConfirmInfoBarDelegate:
32 MediaThrottleInfoBarDelegate* AsMediaThrottleInfoBarDelegate() override; 32 MediaThrottleInfoBarDelegate* AsMediaThrottleInfoBarDelegate() override;
33 base::string16 GetMessageText() const override; 33 base::string16 GetMessageText() const override;
34 int GetIconId() const override;
34 base::string16 GetButtonLabel(InfoBarButton button) const override; 35 base::string16 GetButtonLabel(InfoBarButton button) const override;
35 bool Accept() override; 36 bool Accept() override;
36 bool Cancel() override; 37 bool Cancel() override;
37 void InfoBarDismissed() override; 38 void InfoBarDismissed() override;
38 39
39 DecodeRequestGrantedCallback decode_granted_callback_; 40 DecodeRequestGrantedCallback decode_granted_callback_;
40 41
41 DISALLOW_COPY_AND_ASSIGN(MediaThrottleInfoBarDelegate); 42 DISALLOW_COPY_AND_ASSIGN(MediaThrottleInfoBarDelegate);
42 }; 43 };
43 44
44 #endif // CHROME_BROWSER_ANDROID_MEDIA_MEDIA_THROTTLE_INFOBAR_DELEGATE_H_ 45 #endif // CHROME_BROWSER_ANDROID_MEDIA_MEDIA_THROTTLE_INFOBAR_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/android/media/media_throttle_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698