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

Side by Side Diff: sky/engine/core/page/ChromeClient.h

Issue 654693004: Remove meta viewport and @viewport CSS rules. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple, Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple, Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
4 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 4 * Copyright (C) 2012 Samsung Electronics. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 class GraphicsLayerFactory; 49 class GraphicsLayerFactory;
50 class HitTestResult; 50 class HitTestResult;
51 class IntRect; 51 class IntRect;
52 class LocalFrame; 52 class LocalFrame;
53 class Node; 53 class Node;
54 class Page; 54 class Page;
55 class Widget; 55 class Widget;
56 56
57 struct DateTimeChooserParameters; 57 struct DateTimeChooserParameters;
58 struct GraphicsDeviceAdapter; 58 struct GraphicsDeviceAdapter;
59 struct ViewportDescription;
60 59
61 class ChromeClient { 60 class ChromeClient {
62 public: 61 public:
63 virtual void chromeDestroyed() = 0; 62 virtual void chromeDestroyed() = 0;
64 63
65 virtual void setWindowRect(const FloatRect&) = 0; 64 virtual void setWindowRect(const FloatRect&) = 0;
66 virtual FloatRect windowRect() = 0; 65 virtual FloatRect windowRect() = 0;
67 66
68 virtual FloatRect pageRect() = 0; 67 virtual FloatRect pageRect() = 0;
69 68
(...skipping 17 matching lines...) Expand all
87 86
88 // Methods used by HostWindow. 87 // Methods used by HostWindow.
89 virtual void invalidateContentsAndRootView(const IntRect&) = 0; 88 virtual void invalidateContentsAndRootView(const IntRect&) = 0;
90 virtual void invalidateContentsForSlowScroll(const IntRect&) = 0; 89 virtual void invalidateContentsForSlowScroll(const IntRect&) = 0;
91 virtual IntRect rootViewToScreen(const IntRect&) const = 0; 90 virtual IntRect rootViewToScreen(const IntRect&) const = 0;
92 virtual blink::WebScreenInfo screenInfo() const = 0; 91 virtual blink::WebScreenInfo screenInfo() const = 0;
93 virtual void setCursor(const Cursor&) = 0; 92 virtual void setCursor(const Cursor&) = 0;
94 virtual void scheduleAnimation() = 0; 93 virtual void scheduleAnimation() = 0;
95 // End methods used by HostWindow. 94 // End methods used by HostWindow.
96 95
97 virtual void dispatchViewportPropertiesDidChange(const ViewportDescription&) const { }
98
99 virtual void layoutUpdated(LocalFrame*) const { } 96 virtual void layoutUpdated(LocalFrame*) const { }
100 97
101 virtual void mouseDidMoveOverElement(const HitTestResult&, unsigned modifier Flags) = 0; 98 virtual void mouseDidMoveOverElement(const HitTestResult&, unsigned modifier Flags) = 0;
102 99
103 virtual void setToolTip(const String&, TextDirection) = 0; 100 virtual void setToolTip(const String&, TextDirection) = 0;
104 101
105 virtual bool paintCustomOverhangArea(GraphicsContext*, const IntRect&, const IntRect&, const IntRect&) = 0; 102 virtual bool paintCustomOverhangArea(GraphicsContext*, const IntRect&, const IntRect&, const IntRect&) = 0;
106 103
107 // Allows ports to customize the type of graphics layers created by this pag e. 104 // Allows ports to customize the type of graphics layers created by this pag e.
108 virtual GraphicsLayerFactory* graphicsLayerFactory() const { return 0; } 105 virtual GraphicsLayerFactory* graphicsLayerFactory() const { return 0; }
(...skipping 28 matching lines...) Expand all
137 virtual void willSetInputMethodState() { } 134 virtual void willSetInputMethodState() { }
138 virtual void didUpdateTextOfFocusedElementByNonUserInput() { } 135 virtual void didUpdateTextOfFocusedElementByNonUserInput() { }
139 virtual void showImeIfNeeded() { } 136 virtual void showImeIfNeeded() { }
140 137
141 protected: 138 protected:
142 virtual ~ChromeClient() { } 139 virtual ~ChromeClient() { }
143 }; 140 };
144 141
145 } 142 }
146 #endif // ChromeClient_h 143 #endif // ChromeClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698