OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2009, 2010, 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2009, 2010, 2011, 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
122 | 122 |
123 // Marks the WebView as being opened by a DOM call. This is relevant | 123 // Marks the WebView as being opened by a DOM call. This is relevant |
124 // for whether window.close() may be called. | 124 // for whether window.close() may be called. |
125 virtual void setOpenedByDOM() = 0; | 125 virtual void setOpenedByDOM() = 0; |
126 | 126 |
127 | 127 |
128 // Frames -------------------------------------------------------------- | 128 // Frames -------------------------------------------------------------- |
129 | 129 |
130 virtual WebFrame* mainFrame() = 0; | 130 virtual WebFrame* mainFrame() = 0; |
131 | 131 |
132 virtual void injectModule(const WebString&) = 0; | |
eseidel
2014/10/29 00:05:56
Can this be a WebURL?
| |
133 | |
134 | |
132 // Focus --------------------------------------------------------------- | 135 // Focus --------------------------------------------------------------- |
133 | 136 |
134 virtual WebFrame* focusedFrame() = 0; | 137 virtual WebFrame* focusedFrame() = 0; |
135 virtual void setFocusedFrame(WebFrame*) = 0; | 138 virtual void setFocusedFrame(WebFrame*) = 0; |
136 | 139 |
137 // Focus the first (last if reverse is true) focusable node. | 140 // Focus the first (last if reverse is true) focusable node. |
138 virtual void setInitialFocus(bool reverse) = 0; | 141 virtual void setInitialFocus(bool reverse) = 0; |
139 | 142 |
140 // Clears the focused element (and selection if a text field is focused) | 143 // Clears the focused element (and selection if a text field is focused) |
141 // to ensure that a text field on the page is not eating keystrokes we | 144 // to ensure that a text field on the page is not eating keystrokes we |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
313 | 316 |
314 // Testing functionality for TestRunner --------------------------------- | 317 // Testing functionality for TestRunner --------------------------------- |
315 | 318 |
316 protected: | 319 protected: |
317 ~WebView() {} | 320 ~WebView() {} |
318 }; | 321 }; |
319 | 322 |
320 } // namespace blink | 323 } // namespace blink |
321 | 324 |
322 #endif | 325 #endif |
OLD | NEW |