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

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: Update code Created 5 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
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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 // Removes the given accessibility mode from the current accessibility 198 // Removes the given accessibility mode from the current accessibility
199 // mode bitmap, managing the bits that are shared with other modes such 199 // mode bitmap, managing the bits that are shared with other modes such
200 // that a bit will only be turned off when all modes that depend on it 200 // that a bit will only be turned off when all modes that depend on it
201 // have been removed. 201 // have been removed.
202 void RemoveAccessibilityMode(AccessibilityMode mode); 202 void RemoveAccessibilityMode(AccessibilityMode mode);
203 203
204 // Clear the navigation transition data when the user navigates back to Chrome 204 // Clear the navigation transition data when the user navigates back to Chrome
205 // from a native app. 205 // from a native app.
206 void ClearNavigationTransitionData(); 206 void ClearNavigationTransitionData();
207 207
208 // Updates the policy for handling animated images
209 void UpdateAnimationPolicy();
210
208 // WebContents ------------------------------------------------------ 211 // WebContents ------------------------------------------------------
209 WebContentsDelegate* GetDelegate() override; 212 WebContentsDelegate* GetDelegate() override;
210 void SetDelegate(WebContentsDelegate* delegate) override; 213 void SetDelegate(WebContentsDelegate* delegate) override;
211 NavigationControllerImpl& GetController() override; 214 NavigationControllerImpl& GetController() override;
212 const NavigationControllerImpl& GetController() const override; 215 const NavigationControllerImpl& GetController() const override;
213 BrowserContext* GetBrowserContext() const override; 216 BrowserContext* GetBrowserContext() const override;
214 const GURL& GetURL() const override; 217 const GURL& GetURL() const override;
215 const GURL& GetVisibleURL() const override; 218 const GURL& GetVisibleURL() const override;
216 const GURL& GetLastCommittedURL() const override; 219 const GURL& GetLastCommittedURL() const override;
217 RenderProcessHost* GetRenderProcessHost() const override; 220 RenderProcessHost* GetRenderProcessHost() const override;
(...skipping 1051 matching lines...) Expand 10 before | Expand all | Expand 10 after
1269 // Adds/removes a callback called on creation of each new WebContents. 1272 // Adds/removes a callback called on creation of each new WebContents.
1270 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1273 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1271 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1274 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1272 1275
1273 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1276 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1274 }; 1277 };
1275 1278
1276 } // namespace content 1279 } // namespace content
1277 1280
1278 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1281 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698