| 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_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/process_util.h" | 10 #include "base/process_util.h" |
| (...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 // locked. | 350 // locked. |
| 351 virtual bool GotResponseToLockMouseRequest(bool allowed) = 0; | 351 virtual bool GotResponseToLockMouseRequest(bool allowed) = 0; |
| 352 | 352 |
| 353 // Returns true if the location bar should be focused by default rather than | 353 // Returns true if the location bar should be focused by default rather than |
| 354 // the page contents. The view calls this function when the tab is focused | 354 // the page contents. The view calls this function when the tab is focused |
| 355 // to see what it should do. | 355 // to see what it should do. |
| 356 virtual bool FocusLocationBarByDefault() = 0; | 356 virtual bool FocusLocationBarByDefault() = 0; |
| 357 | 357 |
| 358 // Focuses the location bar. | 358 // Focuses the location bar. |
| 359 virtual void SetFocusToLocationBar(bool select_all) = 0; | 359 virtual void SetFocusToLocationBar(bool select_all) = 0; |
| 360 |
| 361 // Get the origin of the opener. |
| 362 virtual const GURL& GetOpenerOrigin() const = 0; |
| 360 }; | 363 }; |
| 361 | 364 |
| 362 } // namespace content | 365 } // namespace content |
| 363 | 366 |
| 364 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 367 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
| OLD | NEW |