| 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 { |
| 11 | 11 |
| 12 enum class WebAppBannerPromptReply; |
| 12 enum class WebSandboxFlags; | 13 enum class WebSandboxFlags; |
| 13 class WebAutofillClient; | 14 class WebAutofillClient; |
| 14 class WebContentSettingsClient; | 15 class WebContentSettingsClient; |
| 15 class WebFrameClient; | 16 class WebFrameClient; |
| 16 class WebScriptExecutionCallback; | 17 class WebScriptExecutionCallback; |
| 17 struct WebPrintPresetOptions; | 18 struct WebPrintPresetOptions; |
| 18 | 19 |
| 19 // Interface for interacting with in process frames. This contains methods that | 20 // Interface for interacting with in process frames. This contains methods that |
| 20 // require interacting with a frame's document. | 21 // require interacting with a frame's document. |
| 21 // FIXME: Move lots of methods from WebFrame in here. | 22 // FIXME: Move lots of methods from WebFrame in here. |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 // Selection -------------------------------------------------------------- | 106 // Selection -------------------------------------------------------------- |
| 106 | 107 |
| 107 // Moves the selection extent point. This function does not allow the | 108 // Moves the selection extent point. This function does not allow the |
| 108 // selection to collapse. If the new extent is set to the same position as | 109 // selection to collapse. If the new extent is set to the same position as |
| 109 // the current base, this function will do nothing. | 110 // the current base, this function will do nothing. |
| 110 virtual void moveRangeSelectionExtent(const WebPoint&, TextGranularity = Cha
racterGranularity) = 0; | 111 virtual void moveRangeSelectionExtent(const WebPoint&, TextGranularity = Cha
racterGranularity) = 0; |
| 111 | 112 |
| 112 // Content Settings ------------------------------------------------------- | 113 // Content Settings ------------------------------------------------------- |
| 113 | 114 |
| 114 virtual void setContentSettingsClient(WebContentSettingsClient*) = 0; | 115 virtual void setContentSettingsClient(WebContentSettingsClient*) = 0; |
| 116 |
| 117 // App banner ------------------------------------------------------------- |
| 118 |
| 119 // Request to show an application install banner for the given |platform|. |
| 120 // The implementation can request the embedder to cancel the call by setting |
| 121 // |cancel| to true. |
| 122 virtual void willShowInstallBannerPrompt(const WebString& platform, WebAppBa
nnerPromptReply*) = 0; |
| 115 }; | 123 }; |
| 116 | 124 |
| 117 } // namespace blink | 125 } // namespace blink |
| 118 | 126 |
| 119 #endif // WebLocalFrame_h | 127 #endif // WebLocalFrame_h |
| 120 | 128 |
| OLD | NEW |