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

Side by Side Diff: chrome/browser/devtools/devtools_window.h

Issue 13150004: Support color chooser inside extesions, apps, chrome frame, dev tool (Closed) Base URL: http://git.chromium.org/chromium/src.git@ngcolor
Patch Set: Created 7 years, 9 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 CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_ 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_
6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_ 6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 virtual void CloseContents(content::WebContents* source) OVERRIDE {} 159 virtual void CloseContents(content::WebContents* source) OVERRIDE {}
160 virtual bool PreHandleKeyboardEvent( 160 virtual bool PreHandleKeyboardEvent(
161 content::WebContents* source, 161 content::WebContents* source,
162 const content::NativeWebKeyboardEvent& event, 162 const content::NativeWebKeyboardEvent& event,
163 bool* is_keyboard_shortcut) OVERRIDE; 163 bool* is_keyboard_shortcut) OVERRIDE;
164 virtual void HandleKeyboardEvent( 164 virtual void HandleKeyboardEvent(
165 content::WebContents* source, 165 content::WebContents* source,
166 const content::NativeWebKeyboardEvent& event) OVERRIDE; 166 const content::NativeWebKeyboardEvent& event) OVERRIDE;
167 virtual content::JavaScriptDialogManager* 167 virtual content::JavaScriptDialogManager*
168 GetJavaScriptDialogManager() OVERRIDE; 168 GetJavaScriptDialogManager() OVERRIDE;
169 virtual content::ColorChooser* OpenColorChooser(
170 content::WebContents* web_contents,
171 int color_chooser_id,
172 SkColor color) OVERRIDE;
169 virtual void RunFileChooser( 173 virtual void RunFileChooser(
170 content::WebContents* web_contents, 174 content::WebContents* web_contents,
171 const content::FileChooserParams& params) OVERRIDE; 175 const content::FileChooserParams& params) OVERRIDE;
172 virtual void WebContentsFocused(content::WebContents* contents) OVERRIDE; 176 virtual void WebContentsFocused(content::WebContents* contents) OVERRIDE;
173 177
174 static DevToolsWindow* AsDevToolsWindow(content::DevToolsClientHost*); 178 static DevToolsWindow* AsDevToolsWindow(content::DevToolsClientHost*);
175 static DevToolsWindow* AsDevToolsWindow(content::RenderViewHost*); 179 static DevToolsWindow* AsDevToolsWindow(content::RenderViewHost*);
176 180
177 // content::DevToolsFrontendHostDelegate overrides. 181 // content::DevToolsFrontendHostDelegate overrides.
178 virtual void ActivateWindow() OVERRIDE; 182 virtual void ActivateWindow() OVERRIDE;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 content::NotificationRegistrar registrar_; 222 content::NotificationRegistrar registrar_;
219 scoped_ptr<content::DevToolsClientHost> frontend_host_; 223 scoped_ptr<content::DevToolsClientHost> frontend_host_;
220 base::WeakPtrFactory<DevToolsWindow> weak_factory_; 224 base::WeakPtrFactory<DevToolsWindow> weak_factory_;
221 scoped_ptr<DevToolsFileHelper> file_helper_; 225 scoped_ptr<DevToolsFileHelper> file_helper_;
222 int width_; 226 int width_;
223 int height_; 227 int height_;
224 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); 228 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow);
225 }; 229 };
226 230
227 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_ 231 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698