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

Side by Side Diff: content/renderer/render_view_impl.h

Issue 14859017: [content shell] implement auto resize related WebTestDelegate interfaces (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 7 years, 7 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/test/layouttest_support.h ('k') | content/renderer/render_view_impl.cc » ('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_RENDERER_RENDER_VIEW_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 unsigned GetLocalSessionHistoryLengthForTesting() const; 369 unsigned GetLocalSessionHistoryLengthForTesting() const;
370 370
371 // Invokes OnSetFocus and marks the widget as active depending on the value 371 // Invokes OnSetFocus and marks the widget as active depending on the value
372 // of |enable|. This is used for layout tests that need to control the focus 372 // of |enable|. This is used for layout tests that need to control the focus
373 // synchronously from the renderer. 373 // synchronously from the renderer.
374 void SetFocusAndActivateForTesting(bool enable); 374 void SetFocusAndActivateForTesting(bool enable);
375 375
376 // Change the device scale factor and force the compositor to resize. 376 // Change the device scale factor and force the compositor to resize.
377 void SetDeviceScaleFactorForTesting(float factor); 377 void SetDeviceScaleFactorForTesting(float factor);
378 378
379 // Control autoresize mode.
380 void EnableAutoResizeForTesting(const gfx::Size& min_size,
381 const gfx::Size& max_size);
382 void DisableAutoResizeForTesting(const gfx::Size& new_size);
383
379 // IPC::Listener implementation ---------------------------------------------- 384 // IPC::Listener implementation ----------------------------------------------
380 385
381 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 386 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
382 387
383 // WebKit::WebWidgetClient implementation ------------------------------------ 388 // WebKit::WebWidgetClient implementation ------------------------------------
384 389
385 // Most methods are handled by RenderWidget. 390 // Most methods are handled by RenderWidget.
386 virtual void didFocus(); 391 virtual void didFocus();
387 virtual void didBlur(); 392 virtual void didBlur();
388 virtual void show(WebKit::WebNavigationPolicy policy); 393 virtual void show(WebKit::WebNavigationPolicy policy);
(...skipping 1140 matching lines...) Expand 10 before | Expand all | Expand 10 after
1529 // use the Observer interface to filter IPC messages and receive frame change 1534 // use the Observer interface to filter IPC messages and receive frame change
1530 // notifications. 1535 // notifications.
1531 // --------------------------------------------------------------------------- 1536 // ---------------------------------------------------------------------------
1532 1537
1533 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1538 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1534 }; 1539 };
1535 1540
1536 } // namespace content 1541 } // namespace content
1537 1542
1538 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1543 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW
« no previous file with comments | « content/public/test/layouttest_support.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698