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

Side by Side Diff: chrome/browser/geolocation/geolocation_infobar_delegate.h

Issue 15067008: [InfoBar] Add InfoBarDelegate::GetIconID() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit fixes redux Created 7 years, 7 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
OLDNEW
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 #ifndef CHROME_BROWSER_GEOLOCATION_GEOLOCATION_INFOBAR_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_GEOLOCATION_GEOLOCATION_INFOBAR_DELEGATE_H_
6 #define CHROME_BROWSER_GEOLOCATION_GEOLOCATION_INFOBAR_DELEGATE_H_ 6 #define CHROME_BROWSER_GEOLOCATION_GEOLOCATION_INFOBAR_DELEGATE_H_
7 7
8 #include "chrome/browser/geolocation/geolocation_permission_request_id.h" 8 #include "chrome/browser/geolocation/geolocation_permission_request_id.h"
9 #include "chrome/browser/infobars/confirm_infobar_delegate.h" 9 #include "chrome/browser/infobars/confirm_infobar_delegate.h"
10 #include "googleurl/src/gurl.h" 10 #include "googleurl/src/gurl.h"
(...skipping 24 matching lines...) Expand all
35 const std::string& display_languages); 35 const std::string& display_languages);
36 36
37 // ConfirmInfoBarDelegate: 37 // ConfirmInfoBarDelegate:
38 virtual bool Accept() OVERRIDE; 38 virtual bool Accept() OVERRIDE;
39 39
40 // Call back to the controller, to inform of the user's decision. 40 // Call back to the controller, to inform of the user's decision.
41 void SetPermission(bool update_content_setting, bool allowed); 41 void SetPermission(bool update_content_setting, bool allowed);
42 42
43 private: 43 private:
44 // ConfirmInfoBarDelegate: 44 // ConfirmInfoBarDelegate:
45 virtual gfx::Image* GetIcon() const OVERRIDE; 45 virtual int GetIconID() const OVERRIDE;
46 virtual Type GetInfoBarType() const OVERRIDE; 46 virtual Type GetInfoBarType() const OVERRIDE;
47 virtual bool ShouldExpireInternal( 47 virtual bool ShouldExpireInternal(
48 const content::LoadCommittedDetails& details) const OVERRIDE; 48 const content::LoadCommittedDetails& details) const OVERRIDE;
49 virtual string16 GetMessageText() const OVERRIDE; 49 virtual string16 GetMessageText() const OVERRIDE;
50 virtual string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; 50 virtual string16 GetButtonLabel(InfoBarButton button) const OVERRIDE;
51 virtual bool Cancel() OVERRIDE; 51 virtual bool Cancel() OVERRIDE;
52 virtual string16 GetLinkText() const OVERRIDE; 52 virtual string16 GetLinkText() const OVERRIDE;
53 virtual bool LinkClicked(WindowOpenDisposition disposition) OVERRIDE; 53 virtual bool LinkClicked(WindowOpenDisposition disposition) OVERRIDE;
54 54
55 private: 55 private:
56 GeolocationInfoBarQueueController* controller_; 56 GeolocationInfoBarQueueController* controller_;
57 const GeolocationPermissionRequestID id_; 57 const GeolocationPermissionRequestID id_;
58 GURL requesting_frame_; 58 GURL requesting_frame_;
59 int contents_unique_id_; 59 int contents_unique_id_;
60 std::string display_languages_; 60 std::string display_languages_;
61 61
62 DISALLOW_COPY_AND_ASSIGN(GeolocationInfoBarDelegate); 62 DISALLOW_COPY_AND_ASSIGN(GeolocationInfoBarDelegate);
63 }; 63 };
64 64
65 #endif // CHROME_BROWSER_GEOLOCATION_GEOLOCATION_INFOBAR_DELEGATE_H_ 65 #endif // CHROME_BROWSER_GEOLOCATION_GEOLOCATION_INFOBAR_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/geolocation/geolocation_browsertest.cc ('k') | chrome/browser/geolocation/geolocation_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698