| 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/callback_forward.h" | 10 #include "base/callback_forward.h" |
| 11 #include "base/process_util.h" | 11 #include "base/process_util.h" |
| 12 #include "base/string16.h" | 12 #include "base/string16.h" |
| 13 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
| 14 #include "content/public/browser/page_navigator.h" | 14 #include "content/public/browser/page_navigator.h" |
| 15 #include "content/public/browser/save_page_type.h" | 15 #include "content/public/browser/save_page_type.h" |
| 16 #include "content/public/browser/web_ui.h" | 16 #include "content/public/browser/web_ui.h" |
| 17 #include "content/public/common/view_type.h" | 17 #include "content/public/common/view_type.h" |
| 18 #include "third_party/skia/include/core/SkColor.h" |
| 18 #include "ui/gfx/native_widget_types.h" | 19 #include "ui/gfx/native_widget_types.h" |
| 19 #include "webkit/glue/window_open_disposition.h" | 20 #include "webkit/glue/window_open_disposition.h" |
| 20 | 21 |
| 21 namespace base { | 22 namespace base { |
| 22 class PropertyBag; | 23 class PropertyBag; |
| 23 class TimeTicks; | 24 class TimeTicks; |
| 24 } | 25 } |
| 25 | 26 |
| 26 namespace gfx { | 27 namespace gfx { |
| 27 class Rect; | 28 class Rect; |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 | 350 |
| 350 // Returns the WebUI for the current state of the tab. This will either be | 351 // Returns the WebUI for the current state of the tab. This will either be |
| 351 // the pending WebUI, the committed WebUI, or NULL. | 352 // the pending WebUI, the committed WebUI, or NULL. |
| 352 virtual WebUI* GetWebUIForCurrentState()= 0; | 353 virtual WebUI* GetWebUIForCurrentState()= 0; |
| 353 | 354 |
| 354 // Called when the reponse to a pending mouse lock request has arrived. | 355 // Called when the reponse to a pending mouse lock request has arrived. |
| 355 // Returns true if |allowed| is true and the mouse has been successfully | 356 // Returns true if |allowed| is true and the mouse has been successfully |
| 356 // locked. | 357 // locked. |
| 357 virtual bool GotResponseToLockMouseRequest(bool allowed) = 0; | 358 virtual bool GotResponseToLockMouseRequest(bool allowed) = 0; |
| 358 | 359 |
| 360 // Called when the user has selected a color in the color chooser. |
| 361 virtual void DidChooseColorInColorChooser(int color_chooser_id, |
| 362 const SkColor&) = 0; |
| 363 |
| 364 // Called when the color chooser has ended. |
| 365 virtual void DidEndColorChooser(int color_chooser_id) = 0; |
| 366 |
| 359 // Returns true if the location bar should be focused by default rather than | 367 // Returns true if the location bar should be focused by default rather than |
| 360 // the page contents. The view calls this function when the tab is focused | 368 // the page contents. The view calls this function when the tab is focused |
| 361 // to see what it should do. | 369 // to see what it should do. |
| 362 virtual bool FocusLocationBarByDefault() = 0; | 370 virtual bool FocusLocationBarByDefault() = 0; |
| 363 | 371 |
| 364 // Focuses the location bar. | 372 // Focuses the location bar. |
| 365 virtual void SetFocusToLocationBar(bool select_all) = 0; | 373 virtual void SetFocusToLocationBar(bool select_all) = 0; |
| 366 | 374 |
| 367 // Does this have an opener associated with it? | 375 // Does this have an opener associated with it? |
| 368 virtual bool HasOpener() const = 0; | 376 virtual bool HasOpener() const = 0; |
| 369 }; | 377 }; |
| 370 | 378 |
| 371 } // namespace content | 379 } // namespace content |
| 372 | 380 |
| 373 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 381 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
| OLD | NEW |