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_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/observer_list.h" | 15 #include "base/observer_list.h" |
16 #include "base/process_util.h" | 16 #include "base/process_util.h" |
17 #include "base/values.h" | 17 #include "base/values.h" |
18 #include "content/browser/renderer_host/render_widget_host.h" | 18 #include "content/browser/renderer_host/render_widget_host.h" |
19 #include "content/common/content_export.h" | 19 #include "content/common/content_export.h" |
20 #include "content/public/browser/notification_observer.h" | 20 #include "content/public/browser/notification_observer.h" |
21 #include "content/public/common/stop_find_action.h" | 21 #include "content/public/common/stop_find_action.h" |
22 #include "content/public/common/window_container_type.h" | 22 #include "content/public/common/window_container_type.h" |
23 #include "net/base/load_states.h" | 23 #include "net/base/load_states.h" |
| 24 #if defined(ENABLE_INPUT_COLOR) |
| 25 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebColor.h" |
| 26 #endif |
24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" | 27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" |
25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" | 28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" |
26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" | 29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" |
27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" | 30 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" |
28 #include "ui/base/javascript_message_type.h" | 31 #include "ui/base/javascript_message_type.h" |
29 #include "webkit/glue/webaccessibility.h" | 32 #include "webkit/glue/webaccessibility.h" |
30 #include "webkit/glue/window_open_disposition.h" | 33 #include "webkit/glue/window_open_disposition.h" |
31 | 34 |
32 class ChildProcessSecurityPolicy; | 35 class ChildProcessSecurityPolicy; |
33 class FilePath; | 36 class FilePath; |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 // The parameter links contain original URLs of all saved links. | 334 // The parameter links contain original URLs of all saved links. |
332 // The parameter local_paths contain corresponding local file paths of | 335 // The parameter local_paths contain corresponding local file paths of |
333 // all saved links, which matched with vector:links one by one. | 336 // all saved links, which matched with vector:links one by one. |
334 // The parameter local_directory_name is relative path of directory which | 337 // The parameter local_directory_name is relative path of directory which |
335 // contain all saved auxiliary files included all sub frames and resouces. | 338 // contain all saved auxiliary files included all sub frames and resouces. |
336 void GetSerializedHtmlDataForCurrentPageWithLocalLinks( | 339 void GetSerializedHtmlDataForCurrentPageWithLocalLinks( |
337 const std::vector<GURL>& links, | 340 const std::vector<GURL>& links, |
338 const std::vector<FilePath>& local_paths, | 341 const std::vector<FilePath>& local_paths, |
339 const FilePath& local_directory_name); | 342 const FilePath& local_directory_name); |
340 | 343 |
| 344 #if defined(ENABLE_INPUT_COLOR) |
| 345 // Notifies the RenderView that the user selected a color in the color |
| 346 // chooser. |
| 347 void DidChooseColorInColorChooser(WebKit::WebColor); |
| 348 void DidDetachColorChooser(); |
| 349 #endif |
| 350 |
341 // Notifies the Listener that one or more files have been chosen by the user | 351 // Notifies the Listener that one or more files have been chosen by the user |
342 // from a file chooser dialog for the form. |permissions| are flags from the | 352 // from a file chooser dialog for the form. |permissions| are flags from the |
343 // base::PlatformFileFlags enum which specify which file permissions should | 353 // base::PlatformFileFlags enum which specify which file permissions should |
344 // be granted to the renderer. | 354 // be granted to the renderer. |
345 void FilesSelectedInChooser(const std::vector<FilePath>& files, | 355 void FilesSelectedInChooser(const std::vector<FilePath>& files, |
346 int permissions); | 356 int permissions); |
347 | 357 |
348 // Notifies the listener that a directory enumeration is complete. | 358 // Notifies the listener that a directory enumeration is complete. |
349 void DirectoryEnumerationFinished(int request_id, | 359 void DirectoryEnumerationFinished(int request_id, |
350 const std::vector<FilePath>& files); | 360 const std::vector<FilePath>& files); |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
690 typedef std::map<int64, PowerSaveBlocker*> PowerSaveBlockerMap; | 700 typedef std::map<int64, PowerSaveBlocker*> PowerSaveBlockerMap; |
691 PowerSaveBlockerMap power_save_blockers_; | 701 PowerSaveBlockerMap power_save_blockers_; |
692 | 702 |
693 // A list of observers that filter messages. Weak references. | 703 // A list of observers that filter messages. Weak references. |
694 ObserverList<content::RenderViewHostObserver> observers_; | 704 ObserverList<content::RenderViewHostObserver> observers_; |
695 | 705 |
696 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 706 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
697 }; | 707 }; |
698 | 708 |
699 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 709 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
OLD | NEW |