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

Side by Side Diff: WebKit/chromium/src/ChromeClientImpl.h

Issue 650002: Implementing ACCELERATED_COMPOSITING via Skia Base URL: http://svn.webkit.org/repository/webkit/trunk/
Patch Set: '' Created 10 years, 9 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 unified diff | Download patch
« no previous file with comments | « WebCore/platform/graphics/skia/LayerSkia.cpp ('k') | WebKit/chromium/src/ChromeClientImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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
122 virtual WebCore::NotificationPresenter* notificationPresenter() const; 122 virtual WebCore::NotificationPresenter* notificationPresenter() const;
123 #endif 123 #endif
124 virtual void requestGeolocationPermissionForFrame(WebCore::Frame*, WebCore:: Geolocation*); 124 virtual void requestGeolocationPermissionForFrame(WebCore::Frame*, WebCore:: Geolocation*);
125 virtual void cancelGeolocationPermissionRequestForFrame(WebCore::Frame*) { } 125 virtual void cancelGeolocationPermissionRequestForFrame(WebCore::Frame*) { }
126 virtual void runOpenPanel(WebCore::Frame*, PassRefPtr<WebCore::FileChooser>) ; 126 virtual void runOpenPanel(WebCore::Frame*, PassRefPtr<WebCore::FileChooser>) ;
127 virtual void iconForFiles(const Vector<WebCore::String>&, PassRefPtr<WebCore ::FileChooser>); 127 virtual void iconForFiles(const Vector<WebCore::String>&, PassRefPtr<WebCore ::FileChooser>);
128 virtual bool setCursor(WebCore::PlatformCursorHandle) { return false; } 128 virtual bool setCursor(WebCore::PlatformCursorHandle) { return false; }
129 virtual void formStateDidChange(const WebCore::Node*); 129 virtual void formStateDidChange(const WebCore::Node*);
130 virtual PassOwnPtr<WebCore::HTMLParserQuirks> createHTMLParserQuirks() { ret urn 0; } 130 virtual PassOwnPtr<WebCore::HTMLParserQuirks> createHTMLParserQuirks() { ret urn 0; }
131 131
132 #if USE(ACCELERATED_COMPOSITING)
133 // Pass 0 as the GraphicsLayer to detatch the root layer.
134 virtual void attachRootGraphicsLayer(WebCore::Frame*, WebCore::GraphicsLayer *);
135 // Sets a flag to specify that the next time content is drawn to the window,
136 // the changes appear on the screen in synchrony with updates to GraphicsLay ers.
137 virtual void setNeedsOneShotDrawingSynchronization() { }
138 // Sets a flag to specify that the view needs to be updated, so we need
139 // to do an eager layout before the drawing.
140 virtual void scheduleCompositingLayerSync();
141 #endif
132 // ChromeClientChromium methods: 142 // ChromeClientChromium methods:
133 virtual void popupOpened(WebCore::PopupContainer* popupContainer, 143 virtual void popupOpened(WebCore::PopupContainer* popupContainer,
134 const WebCore::IntRect& bounds, 144 const WebCore::IntRect& bounds,
135 bool activatable, 145 bool activatable,
136 bool handleExternally); 146 bool handleExternally);
137 virtual void didChangeAccessibilityObjectState(WebCore::AccessibilityObject* ); 147 virtual void didChangeAccessibilityObjectState(WebCore::AccessibilityObject* );
138 148
139 // ChromeClientImpl: 149 // ChromeClientImpl:
140 void setCursor(const WebCursorInfo& cursor); 150 void setCursor(const WebCursorInfo& cursor);
141 void setCursorForPlugin(const WebCursorInfo& cursor); 151 void setCursorForPlugin(const WebCursorInfo& cursor);
142 152
143 private: 153 private:
144 void getPopupMenuInfo(WebCore::PopupContainer*, WebPopupMenuInfo*); 154 void getPopupMenuInfo(WebCore::PopupContainer*, WebPopupMenuInfo*);
145 155
146 WebViewImpl* m_webView; // weak pointer 156 WebViewImpl* m_webView; // weak pointer
147 bool m_toolbarsVisible; 157 bool m_toolbarsVisible;
148 bool m_statusbarVisible; 158 bool m_statusbarVisible;
149 bool m_scrollbarsVisible; 159 bool m_scrollbarsVisible;
150 bool m_menubarVisible; 160 bool m_menubarVisible;
151 bool m_resizable; 161 bool m_resizable;
152 // Set to true if the next SetCursor is to be ignored. 162 // Set to true if the next SetCursor is to be ignored.
153 bool m_ignoreNextSetCursor; 163 bool m_ignoreNextSetCursor;
154 }; 164 };
155 165
156 } // namespace WebKit 166 } // namespace WebKit
157 167
158 #endif 168 #endif
OLDNEW
« no previous file with comments | « WebCore/platform/graphics/skia/LayerSkia.cpp ('k') | WebKit/chromium/src/ChromeClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698