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 WebLocalFrame_h | 5 #ifndef WebLocalFrame_h |
6 #define WebLocalFrame_h | 6 #define WebLocalFrame_h |
7 | 7 |
8 #include "WebFrame.h" | 8 #include "WebFrame.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 // selection to collapse. If the new extent is set to the same position as | 121 // selection to collapse. If the new extent is set to the same position as |
122 // the current base, this function will do nothing. | 122 // the current base, this function will do nothing. |
123 virtual void moveRangeSelectionExtent(const WebPoint&, TextGranularity = Cha
racterGranularity) = 0; | 123 virtual void moveRangeSelectionExtent(const WebPoint&, TextGranularity = Cha
racterGranularity) = 0; |
124 | 124 |
125 // Content Settings ------------------------------------------------------- | 125 // Content Settings ------------------------------------------------------- |
126 | 126 |
127 virtual void setContentSettingsClient(WebContentSettingsClient*) = 0; | 127 virtual void setContentSettingsClient(WebContentSettingsClient*) = 0; |
128 | 128 |
129 // App banner ------------------------------------------------------------- | 129 // App banner ------------------------------------------------------------- |
130 | 130 |
131 // Request to show an application install banner for the given |platform|. | 131 // Request to show an application install banner for the given |platforms|. |
132 // The implementation can request the embedder to cancel the call by setting | 132 // The implementation can request the embedder to cancel the call by setting |
133 // |cancel| to true. | 133 // |cancel| to true. |
| 134 virtual void willShowInstallBannerPrompt(const WebVector<WebString>& platfor
ms, WebAppBannerPromptReply*) = 0; |
| 135 |
| 136 // Version of the above which takes a single platform. |
| 137 // TODO(benwells): remove this once the chrome side has been updated. |
134 virtual void willShowInstallBannerPrompt(const WebString& platform, WebAppBa
nnerPromptReply*) = 0; | 138 virtual void willShowInstallBannerPrompt(const WebString& platform, WebAppBa
nnerPromptReply*) = 0; |
135 }; | 139 }; |
136 | 140 |
137 } // namespace blink | 141 } // namespace blink |
138 | 142 |
139 #endif // WebLocalFrame_h | 143 #endif // WebLocalFrame_h |
140 | 144 |
OLD | NEW |