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