| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 WEBKIT_GLUE_WEBVIEW_H__ | 5 #ifndef WEBKIT_GLUE_WEBVIEW_H__ |
| 6 #define WEBKIT_GLUE_WEBVIEW_H__ | 6 #define WEBKIT_GLUE_WEBVIEW_H__ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 virtual const WebPreferences& GetPreferences() = 0; | 142 virtual const WebPreferences& GetPreferences() = 0; |
| 143 | 143 |
| 144 // Set the encoding of the current main frame. The value comes from | 144 // Set the encoding of the current main frame. The value comes from |
| 145 // the encoding menu. WebKit uses the function named | 145 // the encoding menu. WebKit uses the function named |
| 146 // SetCustomTextEncodingName to do override encoding job. | 146 // SetCustomTextEncodingName to do override encoding job. |
| 147 virtual void SetPageEncoding(const std::wstring& encoding_name) = 0; | 147 virtual void SetPageEncoding(const std::wstring& encoding_name) = 0; |
| 148 | 148 |
| 149 // Return the canonical encoding name of current main webframe in webview. | 149 // Return the canonical encoding name of current main webframe in webview. |
| 150 virtual std::wstring GetMainFrameEncodingName() = 0; | 150 virtual std::wstring GetMainFrameEncodingName() = 0; |
| 151 | 151 |
| 152 // Change the text zoom level. Text size is made 20% larger or smaller. | 152 // Change the text zoom level. It will make the zoom level 20% larger or |
| 153 virtual void MakeTextLarger() = 0; | 153 // smaller. If text_only is set, the text size will be changed. When unset, |
| 154 virtual void MakeTextSmaller() = 0; | 154 // the entire page's zoom factor will be changed. |
| 155 virtual void MakeTextStandardSize() = 0; | 155 // |
| 156 // You can only have either text zoom or full page zoom at one time. Changing |
| 157 // the mode will change things in weird ways. Generally the app should only |
| 158 // support text zoom or full page zoom, and not both. |
| 159 // |
| 160 // ResetZoom will reset both full page and text zoom. |
| 161 virtual void ZoomIn(bool text_only) = 0; |
| 162 virtual void ZoomOut(bool text_only) = 0; |
| 163 virtual void ResetZoom() = 0; |
| 156 | 164 |
| 157 // Copy to the clipboard the image located at a particular point in the | 165 // Copy to the clipboard the image located at a particular point in the |
| 158 // WebView (if there is such an image) | 166 // WebView (if there is such an image) |
| 159 virtual void CopyImageAt(int x, int y) = 0; | 167 virtual void CopyImageAt(int x, int y) = 0; |
| 160 | 168 |
| 161 // Inspect a particular point in the WebView. (x = -1 || y = -1) is a special | 169 // Inspect a particular point in the WebView. (x = -1 || y = -1) is a special |
| 162 // case which means inspect the current page and not a specific point. | 170 // case which means inspect the current page and not a specific point. |
| 163 virtual void InspectElement(int x, int y) = 0; | 171 virtual void InspectElement(int x, int y) = 0; |
| 164 | 172 |
| 165 // Show the JavaScript console. | 173 // Show the JavaScript console. |
| (...skipping 20 matching lines...) Expand all Loading... |
| 186 virtual void DragTargetDragLeave() = 0; | 194 virtual void DragTargetDragLeave() = 0; |
| 187 virtual void DragTargetDrop( | 195 virtual void DragTargetDrop( |
| 188 int client_x, int client_y, int screen_x, int screen_y) = 0; | 196 int client_x, int client_y, int screen_x, int screen_y) = 0; |
| 189 | 197 |
| 190 private: | 198 private: |
| 191 DISALLOW_EVIL_CONSTRUCTORS(WebView); | 199 DISALLOW_EVIL_CONSTRUCTORS(WebView); |
| 192 }; | 200 }; |
| 193 | 201 |
| 194 #endif // WEBKIT_GLUE_WEBVIEW_H__ | 202 #endif // WEBKIT_GLUE_WEBVIEW_H__ |
| 195 | 203 |
| OLD | NEW |