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

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

Issue 2702103002: [ScreenOrientation] De-associate device.mojom.ScreenOrientation from legacy IPC channel.
Patch Set: Synchronize response of lock success with legacy IPC ViewMsg_Resize. 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 void OnScreenOrientationChange(); 212 void OnScreenOrientationChange();
213 213
214 ScreenOrientationProvider* GetScreenOrientationProviderForTesting() const { 214 ScreenOrientationProvider* GetScreenOrientationProvider() const {
215 return screen_orientation_provider_.get(); 215 return screen_orientation_provider_.get();
216 } 216 }
217 217
218 bool should_normally_be_visible() { return should_normally_be_visible_; } 218 bool should_normally_be_visible() { return should_normally_be_visible_; }
219 219
220 // Indicate if the window has been occluded, and pass this to the views, only 220 // 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 221 // if there is no active capture going on (otherwise it is dropped on the
222 // floor). 222 // floor).
223 void WasOccluded(); 223 void WasOccluded();
224 void WasUnOccluded(); 224 void WasUnOccluded();
(...skipping 1294 matching lines...) Expand 10 before | Expand all | Expand 10 after
1519 // Adds/removes a callback called on creation of each new WebContents. 1519 // Adds/removes a callback called on creation of each new WebContents.
1520 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1520 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1521 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1521 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1522 1522
1523 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1523 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1524 }; 1524 };
1525 1525
1526 } // namespace content 1526 } // namespace content
1527 1527
1528 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1528 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/screen_orientation/screen_orientation_provider_unittest.cc ('k') | content/renderer/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698