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

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 785723002: Add new extension APIs related to animation policy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 // 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_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 // Removes the given accessibility mode from the current accessibility 189 // Removes the given accessibility mode from the current accessibility
190 // mode bitmap, managing the bits that are shared with other modes such 190 // mode bitmap, managing the bits that are shared with other modes such
191 // that a bit will only be turned off when all modes that depend on it 191 // that a bit will only be turned off when all modes that depend on it
192 // have been removed. 192 // have been removed.
193 void RemoveAccessibilityMode(AccessibilityMode mode); 193 void RemoveAccessibilityMode(AccessibilityMode mode);
194 194
195 // Clear the navigation transition data when the user navigates back to Chrome 195 // Clear the navigation transition data when the user navigates back to Chrome
196 // from a native app. 196 // from a native app.
197 void ClearNavigationTransitionData(); 197 void ClearNavigationTransitionData();
198 198
199 // Set the policy for handling animated images
200 void SetImageAnimationPolicy(const std::string& policy);
dmazzoni 2014/12/08 07:46:01 There should be an enum defined somewhere in Chrom
201
199 // WebContents ------------------------------------------------------ 202 // WebContents ------------------------------------------------------
200 WebContentsDelegate* GetDelegate() override; 203 WebContentsDelegate* GetDelegate() override;
201 void SetDelegate(WebContentsDelegate* delegate) override; 204 void SetDelegate(WebContentsDelegate* delegate) override;
202 NavigationControllerImpl& GetController() override; 205 NavigationControllerImpl& GetController() override;
203 const NavigationControllerImpl& GetController() const override; 206 const NavigationControllerImpl& GetController() const override;
204 BrowserContext* GetBrowserContext() const override; 207 BrowserContext* GetBrowserContext() const override;
205 const GURL& GetURL() const override; 208 const GURL& GetURL() const override;
206 const GURL& GetVisibleURL() const override; 209 const GURL& GetVisibleURL() const override;
207 const GURL& GetLastCommittedURL() const override; 210 const GURL& GetLastCommittedURL() const override;
208 RenderProcessHost* GetRenderProcessHost() const override; 211 RenderProcessHost* GetRenderProcessHost() const override;
(...skipping 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after
1230 bool virtual_keyboard_requested_; 1233 bool virtual_keyboard_requested_;
1231 1234
1232 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_; 1235 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_;
1233 1236
1234 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 1237 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
1235 }; 1238 };
1236 1239
1237 } // namespace content 1240 } // namespace content
1238 1241
1239 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1242 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698