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

Unified Diff: webkit/api/public/WebView.h

Issue 385057: Deleted webkit/api which now lives in webkit.org (Closed)
Patch Set: Created 11 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/api/public/WebVector.h ('k') | webkit/api/public/WebViewClient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/api/public/WebView.h
diff --git a/webkit/api/public/WebView.h b/webkit/api/public/WebView.h
deleted file mode 100644
index 8261afc5a95ac7f488bd6fe38aeeff55088b6e2b..0000000000000000000000000000000000000000
--- a/webkit/api/public/WebView.h
+++ /dev/null
@@ -1,246 +0,0 @@
-/*
- * Copyright (C) 2009 Google Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following disclaimer
- * in the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name of Google Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef WebView_h
-#define WebView_h
-
-#include "WebDragOperation.h"
-#include "WebWidget.h"
-
-namespace WebKit {
-
-class WebAccessibilityObject;
-class WebDevToolsAgent;
-class WebDragData;
-class WebFrame;
-class WebFrameClient;
-class WebNode;
-class WebSettings;
-class WebString;
-class WebViewClient;
-struct WebMediaPlayerAction;
-struct WebPoint;
-template <typename T> class WebVector;
-
-class WebView : public WebWidget {
-public:
- // Initialization ------------------------------------------------------
-
- // Creates a WebView that is NOT yet initialized. You will need to
- // call initializeMainFrame to finish the initialization. It is valid
- // to pass a null WebViewClient pointer.
- WEBKIT_API static WebView* create(WebViewClient*);
-
- // After creating a WebView, you should immediately call this method.
- // You can optionally modify the settings before calling this method.
- // The WebFrameClient will receive events for the main frame and any
- // child frames. It is valid to pass a null WebFrameClient pointer.
- virtual void initializeMainFrame(WebFrameClient*) = 0;
-
-
- // Options -------------------------------------------------------------
-
- // The returned pointer is valid for the lifetime of the WebView.
- virtual WebSettings* settings() = 0;
-
- // Corresponds to the encoding of the main frame. Setting the page
- // encoding may cause the main frame to reload.
- virtual WebString pageEncoding() const = 0;
- virtual void setPageEncoding(const WebString&) = 0;
-
- // Makes the WebView transparent. This is useful if you want to have
- // some custom background rendered behind it.
- virtual bool isTransparent() const = 0;
- virtual void setIsTransparent(bool) = 0;
-
- // Controls whether pressing Tab key advances focus to links.
- virtual bool tabsToLinks() const = 0;
- virtual void setTabsToLinks(bool) = 0;
-
- // Method that controls whether pressing Tab key cycles through page
- // elements or inserts a '\t' char in the focused text area.
- virtual bool tabKeyCyclesThroughElements() const = 0;
- virtual void setTabKeyCyclesThroughElements(bool) = 0;
-
- // Controls the WebView's active state, which may affect the rendering
- // of elements on the page (i.e., tinting of input elements).
- virtual bool isActive() const = 0;
- virtual void setIsActive(bool) = 0;
-
-
- // Closing -------------------------------------------------------------
-
- // Runs beforeunload handlers for the current page, returning false if
- // any handler suppressed unloading.
- virtual bool dispatchBeforeUnloadEvent() = 0;
-
- // Runs unload handlers for the current page.
- virtual void dispatchUnloadEvent() = 0;
-
-
- // Frames --------------------------------------------------------------
-
- virtual WebFrame* mainFrame() = 0;
-
- // Returns the frame identified by the given name. This method
- // supports pseudo-names like _self, _top, and _blank. It traverses
- // the entire frame tree containing this tree looking for a frame that
- // matches the given name. If the optional relativeToFrame parameter
- // is specified, then the search begins with the given frame and its
- // children.
- virtual WebFrame* findFrameByName(
- const WebString& name, WebFrame* relativeToFrame = 0) = 0;
-
-
- // Focus ---------------------------------------------------------------
-
- virtual WebFrame* focusedFrame() = 0;
- virtual void setFocusedFrame(WebFrame*) = 0;
-
- // Focus the first (last if reverse is true) focusable node.
- virtual void setInitialFocus(bool reverse) = 0;
-
- // Clears the focused node (and selection if a text field is focused)
- // to ensure that a text field on the page is not eating keystrokes we
- // send it.
- virtual void clearFocusedNode() = 0;
-
-
- // Zoom ----------------------------------------------------------------
-
- // Change the text zoom level. It will make the zoom level 20% larger
- // or smaller. If textOnly is set, the text size will be changed.
- // When unset, the entire page's zoom factor will be changed.
- //
- // You can only have either text zoom or full page zoom at one time.
- // Changing the mode will change things in weird ways. Generally the
- // app should only support text zoom or full page zoom, and not both.
- //
- // zoomDefault will reset both full page and text zoom.
- virtual void zoomIn(bool textOnly) = 0;
- virtual void zoomOut(bool textOnly) = 0;
- virtual void zoomDefault() = 0;
-
-
- // Media ---------------------------------------------------------------
-
- // Performs the specified action on the node at the given location.
- virtual void performMediaPlayerAction(
- const WebMediaPlayerAction&, const WebPoint& location) = 0;
-
-
- // Data exchange -------------------------------------------------------
-
- // Copy to the clipboard the image located at a particular point in the
- // WebView (if there is such an image)
- virtual void copyImageAt(const WebPoint&) = 0;
-
- // Notifies the WebView that a drag has terminated.
- virtual void dragSourceEndedAt(
- const WebPoint& clientPoint, const WebPoint& screenPoint,
- WebDragOperation operation) = 0;
-
- // Notfies the WebView that the system drag and drop operation has ended.
- virtual void dragSourceSystemDragEnded() = 0;
-
- // Callback methods when a drag-and-drop operation is trying to drop
- // something on the WebView.
- virtual WebDragOperation dragTargetDragEnter(
- const WebDragData&, int identity,
- const WebPoint& clientPoint, const WebPoint& screenPoint,
- WebDragOperationsMask operationsAllowed) = 0;
- virtual WebDragOperation dragTargetDragOver(
- const WebPoint& clientPoint, const WebPoint& screenPoint,
- WebDragOperationsMask operationsAllowed) = 0;
- virtual void dragTargetDragLeave() = 0;
- virtual void dragTargetDrop(
- const WebPoint& clientPoint, const WebPoint& screenPoint) = 0;
-
- virtual int dragIdentity() = 0;
-
- // Helper method for drag and drop target operations: override the
- // default drop effect with either a "copy" (accept true) or "none"
- // (accept false) effect. Return true on success.
- virtual bool setDropEffect(bool accept) = 0;
-
-
- // Developer tools -----------------------------------------------------
-
- // Inspect a particular point in the WebView. (x = -1 || y = -1) is a
- // special case, meaning inspect the current page and not a specific
- // point.
- virtual void inspectElementAt(const WebPoint&) = 0;
-
- // Settings used by the inspector.
- virtual WebString inspectorSettings() const = 0;
- virtual void setInspectorSettings(const WebString&) = 0;
-
- // The embedder may optionally engage a WebDevToolsAgent. This may only
- // be set once per WebView.
- virtual WebDevToolsAgent* devToolsAgent() = 0;
- virtual void setDevToolsAgent(WebDevToolsAgent*) = 0;
-
-
- // Accessibility -------------------------------------------------------
-
- // Returns the accessibility object for this view.
- virtual WebAccessibilityObject accessibilityObject() = 0;
-
-
- // Autofill ------------------------------------------------------------
-
- // Notifies the WebView that autofill suggestions are available for a node.
- virtual void applyAutofillSuggestions(
- const WebNode&,
- const WebVector<WebString>& suggestions,
- int defaultSuggestionIndex) = 0;
-
- // Hides the autofill popup if any are showing.
- virtual void hideAutofillPopup() = 0;
-
-
- // Visited link state --------------------------------------------------
-
- // Tells all WebView instances to update the visited link state for the
- // specified hash.
- WEBKIT_API static void updateVisitedLinkState(unsigned long long hash);
-
- // Tells all WebView instances to update the visited state for all
- // their links.
- WEBKIT_API static void resetVisitedLinkState();
-
-
-protected:
- ~WebView() {}
-};
-
-} // namespace WebKit
-
-#endif
« no previous file with comments | « webkit/api/public/WebVector.h ('k') | webkit/api/public/WebViewClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698