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

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

Issue 2702033002: [ScreenOrientation] Fire pending lock request when we found it has failed.
Patch Set: Created 3 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <functional> 10 #include <functional>
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 202
203 // A redirect was received while requesting a resource. 203 // A redirect was received while requesting a resource.
204 void DidGetRedirectForResourceRequest( 204 void DidGetRedirectForResourceRequest(
205 const ResourceRedirectDetails& details); 205 const ResourceRedirectDetails& details);
206 206
207 // Notify observers that the web contents has been focused. 207 // Notify observers that the web contents has been focused.
208 void NotifyWebContentsFocused(); 208 void NotifyWebContentsFocused();
209 209
210 WebContentsView* GetView() const; 210 WebContentsView* GetView() const;
211 211
212 #if defined(OS_ANDROID)
212 void OnScreenOrientationChange(); 213 void OnScreenOrientationChange();
214 #endif
213 215
214 ScreenOrientationProvider* GetScreenOrientationProviderForTesting() const { 216 ScreenOrientationProvider* GetScreenOrientationProviderForTesting() const {
215 return screen_orientation_provider_.get(); 217 return screen_orientation_provider_.get();
216 } 218 }
217 219
218 bool should_normally_be_visible() { return should_normally_be_visible_; } 220 bool should_normally_be_visible() { return should_normally_be_visible_; }
219 221
220 // Indicate if the window has been occluded, and pass this to the views, only 222 // Indicate if the window has been occluded, and pass this to the views, only
221 // if there is no active capture going on (otherwise it is dropped on the 223 // if there is no active capture going on (otherwise it is dropped on the
222 // floor). 224 // floor).
(...skipping 1308 matching lines...) Expand 10 before | Expand all | Expand 10 after
1531 // Adds/removes a callback called on creation of each new WebContents. 1533 // Adds/removes a callback called on creation of each new WebContents.
1532 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1534 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1533 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1535 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1534 1536
1535 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1537 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1536 }; 1538 };
1537 1539
1538 } // namespace content 1540 } // namespace content
1539 1541
1540 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1542 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698