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

Side by Side Diff: Source/WebKit/chromium/public/WebViewClient.h

Issue 8714006: Add autoresize capability for Chromium. (Closed) Base URL: http://git.chromium.org/external/WebKit_trimmed.git@master
Patch Set: Created 9 years 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) 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 class WebSpeechInputListener; 66 class WebSpeechInputListener;
67 class WebStorageNamespace; 67 class WebStorageNamespace;
68 class WebURL; 68 class WebURL;
69 class WebURLRequest; 69 class WebURLRequest;
70 class WebView; 70 class WebView;
71 class WebWidget; 71 class WebWidget;
72 struct WebConsoleMessage; 72 struct WebConsoleMessage;
73 struct WebContextMenuData; 73 struct WebContextMenuData;
74 struct WebPoint; 74 struct WebPoint;
75 struct WebPopupMenuInfo; 75 struct WebPopupMenuInfo;
76 struct WebSize;
76 struct WebWindowFeatures; 77 struct WebWindowFeatures;
77 78
78 // Since a WebView is a WebWidget, a WebViewClient is a WebWidgetClient. 79 // Since a WebView is a WebWidget, a WebViewClient is a WebWidgetClient.
79 // Virtual inheritance allows an implementation of WebWidgetClient to be 80 // Virtual inheritance allows an implementation of WebWidgetClient to be
80 // easily reused as part of an implementation of WebViewClient. 81 // easily reused as part of an implementation of WebViewClient.
81 class WebViewClient : virtual public WebWidgetClient { 82 class WebViewClient : virtual public WebWidgetClient {
82 public: 83 public:
83 // Factory methods ----------------------------------------------------- 84 // Factory methods -----------------------------------------------------
84 85
85 // Create a new related WebView. This method must clone its session storage 86 // Create a new related WebView. This method must clone its session storage
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 // Take focus away from the WebView by focusing an adjacent UI element 240 // Take focus away from the WebView by focusing an adjacent UI element
240 // in the containing window. 241 // in the containing window.
241 virtual void focusNext() { } 242 virtual void focusNext() { }
242 virtual void focusPrevious() { } 243 virtual void focusPrevious() { }
243 244
244 // Called when a new node gets focused. 245 // Called when a new node gets focused.
245 virtual void focusedNodeChanged(const WebNode&) { } 246 virtual void focusedNodeChanged(const WebNode&) { }
246 247
247 virtual void numberOfWheelEventHandlersChanged(unsigned) { } 248 virtual void numberOfWheelEventHandlersChanged(unsigned) { }
248 249
250 // Call when the size of the view automatically changed.
251 virtual void autoSizeChanged(const WebSize&) { }
252
253 // Indicates two things:
254 // 1) The view may have a new layout now.
255 // 2) Calling layout() is a no-op.
256 // After calling WebView::layout(), expect to get this notification
257 // for the view unless the view did not need a layout.
258 virtual void didUpdateLayout() { }
259
249 // Session history ----------------------------------------------------- 260 // Session history -----------------------------------------------------
250 261
251 // Tells the embedder to navigate back or forward in session history by 262 // Tells the embedder to navigate back or forward in session history by
252 // the given offset (relative to the current position in session 263 // the given offset (relative to the current position in session
253 // history). 264 // history).
254 virtual void navigateBackForwardSoon(int offset) { } 265 virtual void navigateBackForwardSoon(int offset) { }
255 266
256 // Returns the number of history items before/after the current 267 // Returns the number of history items before/after the current
257 // history item. 268 // history item.
258 virtual int historyBackListCount() { return 0; } 269 virtual int historyBackListCount() { return 0; }
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 return WebPageVisibilityStateVisible; 330 return WebPageVisibilityStateVisible;
320 } 331 }
321 332
322 protected: 333 protected:
323 ~WebViewClient() { } 334 ~WebViewClient() { }
324 }; 335 };
325 336
326 } // namespace WebKit 337 } // namespace WebKit
327 338
328 #endif 339 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698