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

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 issues Created 8 years, 10 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/WebConsoleMessage.h" 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h"
26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h"
27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" 27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h"
28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" 28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h"
29 #include "third_party/skia/include/core/SkColor.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 ChildProcessSecurityPolicyImpl; 34 class ChildProcessSecurityPolicyImpl;
34 class FilePath; 35 class FilePath;
35 class GURL; 36 class GURL;
36 class PowerSaveBlocker; 37 class PowerSaveBlocker;
37 class SessionStorageNamespace; 38 class SessionStorageNamespace;
38 class SkBitmap; 39 class SkBitmap;
(...skipping 292 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(int color_chooser_id, const SkColor&);
345 void DidEndColorChooser(int color_chooser_id);
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 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 typedef std::map<int64, PowerSaveBlocker*> PowerSaveBlockerMap; 710 typedef std::map<int64, PowerSaveBlocker*> PowerSaveBlockerMap;
705 PowerSaveBlockerMap power_save_blockers_; 711 PowerSaveBlockerMap power_save_blockers_;
706 712
707 // A list of observers that filter messages. Weak references. 713 // A list of observers that filter messages. Weak references.
708 ObserverList<content::RenderViewHostObserver> observers_; 714 ObserverList<content::RenderViewHostObserver> observers_;
709 715
710 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); 716 DISALLOW_COPY_AND_ASSIGN(RenderViewHost);
711 }; 717 };
712 718
713 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 719 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698