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

Unified Diff: sky/engine/core/page/ChromeClient.h

Issue 878673005: Get rid of Chrome, use Page. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 months 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 | « sky/engine/core/page/Chrome.cpp ('k') | sky/engine/core/page/EventHandler.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/page/ChromeClient.h
diff --git a/sky/engine/core/page/ChromeClient.h b/sky/engine/core/page/ChromeClient.h
index 912ad96db91e187974259c4772a998b5b4e45e0e..4221b00c26d962d225c7f83c610e869e8f5fcb75 100644
--- a/sky/engine/core/page/ChromeClient.h
+++ b/sky/engine/core/page/ChromeClient.h
@@ -22,59 +22,35 @@
#ifndef SKY_ENGINE_CORE_PAGE_CHROMECLIENT_H_
#define SKY_ENGINE_CORE_PAGE_CHROMECLIENT_H_
-#include "sky/engine/core/dom/Document.h"
#include "sky/engine/core/frame/ConsoleTypes.h"
#include "sky/engine/core/inspector/ConsoleAPITypes.h"
-#include "sky/engine/core/loader/NavigationPolicy.h"
#include "sky/engine/core/page/FocusType.h"
-#include "sky/engine/core/rendering/style/RenderStyleConstants.h"
#include "sky/engine/platform/Cursor.h"
-#include "sky/engine/platform/HostWindow.h"
-#include "sky/engine/platform/scroll/ScrollTypes.h"
+#include "sky/engine/public/platform/WebScreenInfo.h"
#include "sky/engine/wtf/Forward.h"
-#include "sky/engine/wtf/PassOwnPtr.h"
-#include "sky/engine/wtf/Vector.h"
namespace blink {
-class ColorChooser;
-class ColorChooserClient;
-class DateTimeChooser;
-class DateTimeChooserClient;
class Element;
class FloatRect;
-class Frame;
-class GraphicsContext;
-class HitTestResult;
class IntRect;
class LocalFrame;
class Node;
-class Page;
-class Widget;
struct DateTimeChooserParameters;
struct GraphicsDeviceAdapter;
class ChromeClient {
public:
- virtual void chromeDestroyed() = 0;
-
virtual void setWindowRect(const FloatRect&) = 0;
virtual FloatRect windowRect() = 0;
- virtual FloatRect pageRect() = 0;
-
virtual void focus() = 0;
-
virtual bool canTakeFocus(FocusType) = 0;
virtual void takeFocus(FocusType) = 0;
-
virtual void focusedNodeChanged(Node*) = 0;
-
virtual void focusedFrameChanged(LocalFrame*) = 0;
- virtual void show(NavigationPolicy) = 0;
-
virtual bool shouldReportDetailedMessageForSource(const String& source) = 0;
virtual void addMessageToConsole(LocalFrame*, MessageSource, MessageLevel, const String& message, unsigned lineNumber, const String& sourceID, const String& stackTrace) = 0;
@@ -83,28 +59,13 @@ public:
// Methods used by HostWindow.
virtual IntRect rootViewToScreen(const IntRect&) const = 0;
virtual blink::WebScreenInfo screenInfo() const = 0;
- virtual void setCursor(const Cursor&) = 0;
virtual void scheduleVisualUpdate() = 0;
// End methods used by HostWindow.
- virtual void layoutUpdated(LocalFrame*) const { }
+ virtual void setCursor(const Cursor&) = 0;
virtual String acceptLanguages() = 0;
- enum DialogType {
- AlertDialog = 0,
- ConfirmDialog = 1,
- PromptDialog = 2,
- HTMLDialog = 3
- };
-
- virtual FloatSize minimumWindowSize() const { return FloatSize(100, 100); };
-
- virtual bool isChromeClientImpl() const { return false; }
-
- // Input mehtod editor related functions.
- virtual void willSetInputMethodState() { }
-
protected:
virtual ~ChromeClient() { }
};
« no previous file with comments | « sky/engine/core/page/Chrome.cpp ('k') | sky/engine/core/page/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698