| OLD | NEW |
| 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 void DidGetRedirectForResourceRequest( | 173 void DidGetRedirectForResourceRequest( |
| 174 RenderFrameHost* render_frame_host, | 174 RenderFrameHost* render_frame_host, |
| 175 const ResourceRedirectDetails& details); | 175 const ResourceRedirectDetails& details); |
| 176 | 176 |
| 177 WebContentsView* GetView() const; | 177 WebContentsView* GetView() const; |
| 178 | 178 |
| 179 ScreenOrientationDispatcherHost* screen_orientation_dispatcher_host() { | 179 ScreenOrientationDispatcherHost* screen_orientation_dispatcher_host() { |
| 180 return screen_orientation_dispatcher_host_.get(); | 180 return screen_orientation_dispatcher_host_.get(); |
| 181 } | 181 } |
| 182 | 182 |
| 183 bool should_normally_be_visible() { return should_normally_be_visible_; } | 183 bool should_normally_be_visible() const { |
| 184 return should_normally_be_visible_; |
| 185 } |
| 184 | 186 |
| 185 // Indicate if the window has been occluded, and pass this to the views, only | 187 // Indicate if the window has been occluded, and pass this to the views, only |
| 186 // if there is no active capture going on (otherwise it is dropped on the | 188 // if there is no active capture going on (otherwise it is dropped on the |
| 187 // floor). | 189 // floor). |
| 188 void WasOccluded(); | 190 void WasOccluded(); |
| 189 void WasUnOccluded(); | 191 void WasUnOccluded(); |
| 190 | 192 |
| 191 // Broadcasts the mode change to all frames. | 193 // Broadcasts the mode change to all frames. |
| 192 void SetAccessibilityMode(AccessibilityMode mode); | 194 void SetAccessibilityMode(AccessibilityMode mode); |
| 193 | 195 |
| (...skipping 1072 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1266 // Adds/removes a callback called on creation of each new WebContents. | 1268 // Adds/removes a callback called on creation of each new WebContents. |
| 1267 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1269 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1268 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1270 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1269 | 1271 |
| 1270 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1272 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
| 1271 }; | 1273 }; |
| 1272 | 1274 |
| 1273 } // namespace content | 1275 } // namespace content |
| 1274 | 1276 |
| 1275 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1277 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |