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

Side by Side Diff: chrome/renderer/chrome_content_renderer_client.h

Issue 7831028: Compute pageScaleFactor on page so that fixed layout page fits width of window. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Minimizes render_view_impl changes and introduces a defaultDeviceScaleFactor argument Created 8 years, 10 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
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 CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ 5 #ifndef CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_
6 #define CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ 6 #define CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 28 matching lines...) Expand all
39 39
40 namespace chrome { 40 namespace chrome {
41 41
42 class ChromeContentRendererClient : public content::ContentRendererClient { 42 class ChromeContentRendererClient : public content::ContentRendererClient {
43 public: 43 public:
44 ChromeContentRendererClient(); 44 ChromeContentRendererClient();
45 virtual ~ChromeContentRendererClient(); 45 virtual ~ChromeContentRendererClient();
46 46
47 virtual void RenderThreadStarted() OVERRIDE; 47 virtual void RenderThreadStarted() OVERRIDE;
48 virtual void RenderViewCreated(content::RenderView* render_view) OVERRIDE; 48 virtual void RenderViewCreated(content::RenderView* render_view) OVERRIDE;
49 virtual void RenderViewResized(content::RenderView* render_view,
50 int new_width, int new_height) OVERRIDE;
49 virtual void SetNumberOfViews(int number_of_views) OVERRIDE; 51 virtual void SetNumberOfViews(int number_of_views) OVERRIDE;
50 virtual SkBitmap* GetSadPluginBitmap() OVERRIDE; 52 virtual SkBitmap* GetSadPluginBitmap() OVERRIDE;
51 virtual std::string GetDefaultEncoding() OVERRIDE; 53 virtual std::string GetDefaultEncoding() OVERRIDE;
52 virtual bool OverrideCreatePlugin( 54 virtual bool OverrideCreatePlugin(
53 content::RenderView* render_view, 55 content::RenderView* render_view,
54 WebKit::WebFrame* frame, 56 WebKit::WebFrame* frame,
55 const WebKit::WebPluginParams& params, 57 const WebKit::WebPluginParams& params,
56 WebKit::WebPlugin** plugin) OVERRIDE; 58 WebKit::WebPlugin** plugin) OVERRIDE;
57 virtual bool HasErrorPage(int http_status_code, 59 virtual bool HasErrorPage(int http_status_code,
58 std::string* error_domain) OVERRIDE; 60 std::string* error_domain) OVERRIDE;
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 scoped_ptr<VisitedLinkSlave> visited_link_slave_; 162 scoped_ptr<VisitedLinkSlave> visited_link_slave_;
161 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; 163 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_;
162 164
163 // Set of origins that can use TCP/UDP private APIs from NaCl. 165 // Set of origins that can use TCP/UDP private APIs from NaCl.
164 std::set<std::string> allowed_socket_origins_; 166 std::set<std::string> allowed_socket_origins_;
165 }; 167 };
166 168
167 } // namespace chrome 169 } // namespace chrome
168 170
169 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ 171 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698