Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(202)

Side by Side Diff: content/browser/renderer_host/render_view_host.h

Issue 9203001: Implement input type=color UI (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fixed comment Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/browser/site_instance_impl.h" 19 #include "content/browser/site_instance_impl.h"
20 #include "content/common/content_export.h" 20 #include "content/common/content_export.h"
21 #include "content/public/browser/notification_observer.h" 21 #include "content/public/browser/notification_observer.h"
22 #include "content/public/common/stop_find_action.h" 22 #include "content/public/common/stop_find_action.h"
23 #include "content/public/common/window_container_type.h" 23 #include "content/public/common/window_container_type.h"
24 #include "net/base/load_states.h" 24 #include "net/base/load_states.h"
25 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebColor.h"
25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h"
26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" 27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h"
27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" 28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h"
28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" 29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h"
29 #include "ui/base/javascript_message_type.h" 30 #include "ui/base/javascript_message_type.h"
30 #include "webkit/glue/webaccessibility.h" 31 #include "webkit/glue/webaccessibility.h"
31 #include "webkit/glue/window_open_disposition.h" 32 #include "webkit/glue/window_open_disposition.h"
32 33
33 class ChildProcessSecurityPolicy; 34 class ChildProcessSecurityPolicy;
34 class FilePath; 35 class FilePath;
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 // The parameter links contain original URLs of all saved links. 332 // The parameter links contain original URLs of all saved links.
332 // The parameter local_paths contain corresponding local file paths of 333 // The parameter local_paths contain corresponding local file paths of
333 // all saved links, which matched with vector:links one by one. 334 // all saved links, which matched with vector:links one by one.
334 // The parameter local_directory_name is relative path of directory which 335 // The parameter local_directory_name is relative path of directory which
335 // contain all saved auxiliary files included all sub frames and resouces. 336 // contain all saved auxiliary files included all sub frames and resouces.
336 void GetSerializedHtmlDataForCurrentPageWithLocalLinks( 337 void GetSerializedHtmlDataForCurrentPageWithLocalLinks(
337 const std::vector<GURL>& links, 338 const std::vector<GURL>& links,
338 const std::vector<FilePath>& local_paths, 339 const std::vector<FilePath>& local_paths,
339 const FilePath& local_directory_name); 340 const FilePath& local_directory_name);
340 341
342 // Notifies the RenderView that the user selected a color in the color
343 // chooser.
344 void DidChooseColorInColorChooser(WebKit::WebColor);
345 void DidEndColorChooser();
346
341 // Notifies the Listener that one or more files have been chosen by the user 347 // 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 348 // from a file chooser dialog for the form. |permissions| are flags from the
343 // base::PlatformFileFlags enum which specify which file permissions should 349 // base::PlatformFileFlags enum which specify which file permissions should
344 // be granted to the renderer. 350 // be granted to the renderer.
345 void FilesSelectedInChooser(const std::vector<FilePath>& files, 351 void FilesSelectedInChooser(const std::vector<FilePath>& files,
346 int permissions); 352 int permissions);
347 353
348 // Notifies the listener that a directory enumeration is complete. 354 // Notifies the listener that a directory enumeration is complete.
349 void DirectoryEnumerationFinished(int request_id, 355 void DirectoryEnumerationFinished(int request_id,
350 const std::vector<FilePath>& files); 356 const std::vector<FilePath>& files);
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 void OnDidZoomURL(double zoom_level, bool remember, const GURL& url); 594 void OnDidZoomURL(double zoom_level, bool remember, const GURL& url);
589 void OnMediaNotification(int64 player_cookie, 595 void OnMediaNotification(int64 player_cookie,
590 bool has_video, 596 bool has_video,
591 bool has_audio, 597 bool has_audio,
592 bool is_playing); 598 bool is_playing);
593 void OnRequestDesktopNotificationPermission(const GURL& origin, 599 void OnRequestDesktopNotificationPermission(const GURL& origin,
594 int callback_id); 600 int callback_id);
595 void OnShowDesktopNotification( 601 void OnShowDesktopNotification(
596 const content::ShowDesktopNotificationHostMsgParams& params); 602 const content::ShowDesktopNotificationHostMsgParams& params);
597 void OnCancelDesktopNotification(int notification_id); 603 void OnCancelDesktopNotification(int notification_id);
604 void OnOpenColorChooser(const WebKit::WebColor& color);
605 void OnEndColorChooser();
606 void OnSetSelectedColorInColorChooser(const WebKit::WebColor& color);
598 void OnRunFileChooser(const content::FileChooserParams& params); 607 void OnRunFileChooser(const content::FileChooserParams& params);
599 608
600 void OnWebUISend(const GURL& source_url, const std::string& name, 609 void OnWebUISend(const GURL& source_url, const std::string& name,
601 const base::ListValue& args); 610 const base::ListValue& args);
602 611
603 #if defined(OS_MACOSX) 612 #if defined(OS_MACOSX)
604 void OnMsgShowPopup(const ViewHostMsg_ShowPopup_Params& params); 613 void OnMsgShowPopup(const ViewHostMsg_ShowPopup_Params& params);
605 #endif 614 #endif
606 615
607 private: 616 private:
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
691 typedef std::map<int64, PowerSaveBlocker*> PowerSaveBlockerMap; 700 typedef std::map<int64, PowerSaveBlocker*> PowerSaveBlockerMap;
692 PowerSaveBlockerMap power_save_blockers_; 701 PowerSaveBlockerMap power_save_blockers_;
693 702
694 // A list of observers that filter messages. Weak references. 703 // A list of observers that filter messages. Weak references.
695 ObserverList<content::RenderViewHostObserver> observers_; 704 ObserverList<content::RenderViewHostObserver> observers_;
696 705
697 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); 706 DISALLOW_COPY_AND_ASSIGN(RenderViewHost);
698 }; 707 };
699 708
700 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 709 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698