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

Side by Side Diff: chrome/browser/ui/extensions/shell_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_UI_EXTENSIONS_SHELL_WINDOW_H_ 5 #ifndef CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_
6 #define CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_ 6 #define CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "chrome/browser/extensions/extension_keybinding_registry.h" 10 #include "chrome/browser/extensions/extension_keybinding_registry.h"
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 protected: 178 protected:
179 virtual ~ShellWindow(); 179 virtual ~ShellWindow();
180 180
181 private: 181 private:
182 // PlatformAppBrowserTest needs access to web_contents() 182 // PlatformAppBrowserTest needs access to web_contents()
183 friend class extensions::PlatformAppBrowserTest; 183 friend class extensions::PlatformAppBrowserTest;
184 184
185 // content::WebContentsDelegate implementation. 185 // content::WebContentsDelegate implementation.
186 virtual void CloseContents(content::WebContents* contents) OVERRIDE; 186 virtual void CloseContents(content::WebContents* contents) OVERRIDE;
187 virtual bool ShouldSuppressDialogs() OVERRIDE; 187 virtual bool ShouldSuppressDialogs() OVERRIDE;
188 virtual content::ColorChooser* OpenColorChooser(
189 content::WebContents* web_contents,
190 int color_chooser_id,
191 SkColor color) OVERRIDE;
188 virtual void RunFileChooser( 192 virtual void RunFileChooser(
189 content::WebContents* tab, 193 content::WebContents* tab,
190 const content::FileChooserParams& params) OVERRIDE; 194 const content::FileChooserParams& params) OVERRIDE;
191 virtual bool IsPopupOrPanel( 195 virtual bool IsPopupOrPanel(
192 const content::WebContents* source) const OVERRIDE; 196 const content::WebContents* source) const OVERRIDE;
193 virtual void MoveContents( 197 virtual void MoveContents(
194 content::WebContents* source, const gfx::Rect& pos) OVERRIDE; 198 content::WebContents* source, const gfx::Rect& pos) OVERRIDE;
195 virtual void NavigationStateChanged(const content::WebContents* source, 199 virtual void NavigationStateChanged(const content::WebContents* source,
196 unsigned changed_flags) OVERRIDE; 200 unsigned changed_flags) OVERRIDE;
197 virtual void ToggleFullscreenModeForTab(content::WebContents* source, 201 virtual void ToggleFullscreenModeForTab(content::WebContents* source,
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 270
267 scoped_ptr<NativeAppWindow> native_app_window_; 271 scoped_ptr<NativeAppWindow> native_app_window_;
268 scoped_ptr<ShellWindowContents> shell_window_contents_; 272 scoped_ptr<ShellWindowContents> shell_window_contents_;
269 273
270 base::WeakPtrFactory<ShellWindow> image_loader_ptr_factory_; 274 base::WeakPtrFactory<ShellWindow> image_loader_ptr_factory_;
271 275
272 DISALLOW_COPY_AND_ASSIGN(ShellWindow); 276 DISALLOW_COPY_AND_ASSIGN(ShellWindow);
273 }; 277 };
274 278
275 #endif // CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_ 279 #endif // CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698