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

Side by Side Diff: content/public/browser/web_contents_delegate.h

Issue 9517010: Change panels to be able to turn off autoresize. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix assert at the end of RenderWidget::Resize which fixes the tests on OSX. Created 8 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 | Annotate | Revision Log
« no previous file with comments | « content/public/browser/render_view_host_delegate.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 int active_match_ordinal, 355 int active_match_ordinal,
356 bool final_update) {} 356 bool final_update) {}
357 357
358 // Notification that a plugin has crashed. 358 // Notification that a plugin has crashed.
359 virtual void CrashedPlugin(WebContents* tab, const FilePath& plugin_path) {} 359 virtual void CrashedPlugin(WebContents* tab, const FilePath& plugin_path) {}
360 360
361 // Invoked when the preferred size of the contents has been changed. 361 // Invoked when the preferred size of the contents has been changed.
362 virtual void UpdatePreferredSize(WebContents* tab, 362 virtual void UpdatePreferredSize(WebContents* tab,
363 const gfx::Size& pref_size) {} 363 const gfx::Size& pref_size) {}
364 364
365 // Invoked when the contents auto-resized and the container should match it.
366 virtual void ResizeDueToAutoResize(WebContents* tab,
367 const gfx::Size& new_size) {}
368
365 // Notification message from HTML UI. 369 // Notification message from HTML UI.
366 virtual void WebUISend(WebContents* tab, 370 virtual void WebUISend(WebContents* tab,
367 const GURL& source_url, 371 const GURL& source_url,
368 const std::string& name, 372 const std::string& name,
369 const base::ListValue& args) {} 373 const base::ListValue& args) {}
370 374
371 // Requests to lock the mouse. Once the request is approved or rejected, 375 // Requests to lock the mouse. Once the request is approved or rejected,
372 // GotResponseToLockMouseRequest() will be called on the requesting tab 376 // GotResponseToLockMouseRequest() will be called on the requesting tab
373 // contents. 377 // contents.
374 virtual void RequestToLockMouse(WebContents* tab) {} 378 virtual void RequestToLockMouse(WebContents* tab) {}
(...skipping 13 matching lines...) Expand all
388 // Called when |this| is no longer the WebContentsDelegate for |source|. 392 // Called when |this| is no longer the WebContentsDelegate for |source|.
389 void Detach(WebContents* source); 393 void Detach(WebContents* source);
390 394
391 // The WebContents that this is currently a delegate for. 395 // The WebContents that this is currently a delegate for.
392 std::set<WebContents*> attached_contents_; 396 std::set<WebContents*> attached_contents_;
393 }; 397 };
394 398
395 } // namespace content 399 } // namespace content
396 400
397 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 401 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/public/browser/render_view_host_delegate.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698