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

Side by Side Diff: chrome/browser/ui/website_settings/permission_bubble_request.h

Issue 1903103002: Remove some dead code for permission bubbles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix rebase error Created 4 years, 8 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 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_WEBSITE_SETTINGS_PERMISSION_BUBBLE_REQUEST_H_ 5 #ifndef CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_REQUEST_H_
6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_REQUEST_H_ 6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_REQUEST_H_
7 7
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "url/gurl.h" 9 #include "url/gurl.h"
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 virtual ~PermissionBubbleRequest() {} 44 virtual ~PermissionBubbleRequest() {}
45 45
46 // Returns a vector icon id if the icon should be drawn as a vector 46 // Returns a vector icon id if the icon should be drawn as a vector
47 // resource. Otherwise, returns VECTOR_ICON_NONE. 47 // resource. Otherwise, returns VECTOR_ICON_NONE.
48 virtual gfx::VectorIconId GetVectorIconId() const; 48 virtual gfx::VectorIconId GetVectorIconId() const;
49 49
50 // The icon to use next to the message text fragment in the permission bubble. 50 // The icon to use next to the message text fragment in the permission bubble.
51 // Must be a valid icon of size 18x18. 51 // Must be a valid icon of size 18x18.
52 virtual int GetIconId() const = 0; 52 virtual int GetIconId() const = 0;
53 53
54 // Returns the full prompt text for this permission. This is the only text
55 // that will be shown in the single-permission case and should be phrased
56 // positively as a complete sentence.
57 virtual base::string16 GetMessageText() const = 0;
58
59 // Returns the shortened prompt text for this permission. Must be phrased 54 // Returns the shortened prompt text for this permission. Must be phrased
60 // as a heading, e.g. "Location", or "Camera". The permission bubble may 55 // as a heading, e.g. "Location", or "Camera". The permission bubble may
61 // coalesce different requests, and if it does, this text will be displayed 56 // coalesce different requests, and if it does, this text will be displayed
62 // next to an image and indicate the user grants the permission. 57 // next to an image and indicate the user grants the permission.
63 virtual base::string16 GetMessageTextFragment() const = 0; 58 virtual base::string16 GetMessageTextFragment() const = 0;
64 59
65 // Get the origin on whose behalf this permission request is being made. 60 // Get the origin on whose behalf this permission request is being made.
66 virtual GURL GetOrigin() const = 0; 61 virtual GURL GetOrigin() const = 0;
67 62
68 // Called when the user has granted the requested permission. 63 // Called when the user has granted the requested permission.
(...skipping 10 matching lines...) Expand all
79 // The bubble this request was associated with was answered by the user. 74 // The bubble this request was associated with was answered by the user.
80 // It is safe for the request to be deleted at this point -- it will receive 75 // It is safe for the request to be deleted at this point -- it will receive
81 // no further message from the permission bubble system. This method will 76 // no further message from the permission bubble system. This method will
82 // eventually be called on every request which is not unregistered. 77 // eventually be called on every request which is not unregistered.
83 virtual void RequestFinished() = 0; 78 virtual void RequestFinished() = 0;
84 79
85 virtual PermissionBubbleType GetPermissionBubbleType() const; 80 virtual PermissionBubbleType GetPermissionBubbleType() const;
86 }; 81 };
87 82
88 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_REQUEST_H_ 83 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_REQUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698