| 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 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/callback_forward.h" | 9 #include "base/callback_forward.h" |
| 10 #include "base/process_util.h" | 10 #include "base/process_util.h" |
| (...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 | 386 |
| 387 // Get the content restrictions (see content::ContentRestriction). | 387 // Get the content restrictions (see content::ContentRestriction). |
| 388 virtual int GetContentRestrictions() const = 0; | 388 virtual int GetContentRestrictions() const = 0; |
| 389 | 389 |
| 390 // Called when the reponse to a pending mouse lock request has arrived. | 390 // Called when the reponse to a pending mouse lock request has arrived. |
| 391 // Returns true if |allowed| is true and the mouse has been successfully | 391 // Returns true if |allowed| is true and the mouse has been successfully |
| 392 // locked. | 392 // locked. |
| 393 virtual bool GotResponseToLockMouseRequest(bool allowed) = 0; | 393 virtual bool GotResponseToLockMouseRequest(bool allowed) = 0; |
| 394 | 394 |
| 395 // Called when the user has selected a color in the color chooser. | 395 // Called when the user has selected a color in the color chooser. |
| 396 virtual void DidChooseColorInColorChooser(int color_chooser_id, | 396 virtual void DidChooseColorInColorChooser(SkColor color) = 0; |
| 397 SkColor color) = 0; | |
| 398 | 397 |
| 399 // Called when the color chooser has ended. | 398 // Called when the color chooser has ended. |
| 400 virtual void DidEndColorChooser(int color_chooser_id) = 0; | 399 virtual void DidEndColorChooser() = 0; |
| 401 | 400 |
| 402 // Returns true if the location bar should be focused by default rather than | 401 // Returns true if the location bar should be focused by default rather than |
| 403 // the page contents. The view calls this function when the tab is focused | 402 // the page contents. The view calls this function when the tab is focused |
| 404 // to see what it should do. | 403 // to see what it should do. |
| 405 virtual bool FocusLocationBarByDefault() = 0; | 404 virtual bool FocusLocationBarByDefault() = 0; |
| 406 | 405 |
| 407 // Does this have an opener associated with it? | 406 // Does this have an opener associated with it? |
| 408 virtual bool HasOpener() const = 0; | 407 virtual bool HasOpener() const = 0; |
| 409 | 408 |
| 410 typedef base::Callback<void(int, /* id */ | 409 typedef base::Callback<void(int, /* id */ |
| (...skipping 17 matching lines...) Expand all Loading... |
| 428 | 427 |
| 429 private: | 428 private: |
| 430 // This interface should only be implemented inside content. | 429 // This interface should only be implemented inside content. |
| 431 friend class WebContentsImpl; | 430 friend class WebContentsImpl; |
| 432 WebContents() {} | 431 WebContents() {} |
| 433 }; | 432 }; |
| 434 | 433 |
| 435 } // namespace content | 434 } // namespace content |
| 436 | 435 |
| 437 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 436 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
| OLD | NEW |