summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/apps/chrome_app_delegate.h
diff options
context:
space:
mode:
authorbenwells <benwells@chromium.org>2015-01-12 15:16:01 -0800
committerCommit bot <commit-bot@chromium.org>2015-01-12 23:16:58 +0000
commit9d9b1161ed6454aac72a97496babc7de5469cc56 (patch)
treedd8bdabaa90a8dbd4e24d1d529d63e9af4c4bd5c /chrome/browser/ui/apps/chrome_app_delegate.h
parentee3fa9866a01dc2fcd1e3beb188c683ba4d79e8b (diff)
downloadchromium_src-9d9b1161ed6454aac72a97496babc7de5469cc56.zip
chromium_src-9d9b1161ed6454aac72a97496babc7de5469cc56.tar.gz
chromium_src-9d9b1161ed6454aac72a97496babc7de5469cc56.tar.bz2
Keep app default zoom level independent of the browser zoom level.
This was mostly done already with the defalut zoom level being stored as a StoragePartition level preference. However when the renderer preferences were set they did not use the default zoom of the correct StoragePartition; the default StoragePartition's default zoom was always used. Due to this bug apps could easily have host specific zoom levels set mistakenly. This change also removes any host specific zoom levels of apps as they are started. If apps ever get the capability to zoom this will need to be removed. BUG=407333, 153568, 411073, 446759 Review URL: https://codereview.chromium.org/839023002 Cr-Commit-Position: refs/heads/master@{#311138}
Diffstat (limited to 'chrome/browser/ui/apps/chrome_app_delegate.h')
-rw-r--r--chrome/browser/ui/apps/chrome_app_delegate.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/chrome/browser/ui/apps/chrome_app_delegate.h b/chrome/browser/ui/apps/chrome_app_delegate.h
index e08e613..4e7c7d4 100644
--- a/chrome/browser/ui/apps/chrome_app_delegate.h
+++ b/chrome/browser/ui/apps/chrome_app_delegate.h
@@ -13,11 +13,6 @@
#include "ui/base/window_open_disposition.h"
#include "ui/gfx/geometry/rect.h"
-namespace content {
-class BrowserContext;
-class WebContents;
-}
-
class ScopedKeepAlive;
class ChromeAppDelegate : public extensions::AppDelegate,
@@ -35,6 +30,7 @@ class ChromeAppDelegate : public extensions::AppDelegate,
// extensions::AppDelegate:
void InitWebContents(content::WebContents* web_contents) override;
+ void RenderViewCreated(content::RenderViewHost* render_view_host) override;
void ResizeWebContents(content::WebContents* web_contents,
const gfx::Size& size) override;
content::WebContents* OpenURLFromTab(