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

Side by Side Diff: content/browser/tab_contents/tab_contents.h

Issue 9203001: Implement input type=color UI (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: added content::ColorChooser Created 8 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 CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
(...skipping 20 matching lines...) Expand all
31 #endif 31 #endif
32 32
33 class InterstitialPageImpl; 33 class InterstitialPageImpl;
34 class LoadNotificationDetails; 34 class LoadNotificationDetails;
35 class RenderViewHost; 35 class RenderViewHost;
36 class SavePackage; 36 class SavePackage;
37 class SessionStorageNamespaceImpl; 37 class SessionStorageNamespaceImpl;
38 struct ViewHostMsg_DidFailProvisionalLoadWithError_Params; 38 struct ViewHostMsg_DidFailProvisionalLoadWithError_Params;
39 39
40 namespace content { 40 namespace content {
41 class ColorChooser;
41 class DownloadItem; 42 class DownloadItem;
42 class SiteInstance; 43 class SiteInstance;
43 class JavaScriptDialogCreator; 44 class JavaScriptDialogCreator;
44 class WebContentsDelegate; 45 class WebContentsDelegate;
45 class WebContentsObserver; 46 class WebContentsObserver;
46 class WebContentsView; 47 class WebContentsView;
47 } 48 }
48 49
49 namespace webkit_glue { 50 namespace webkit_glue {
50 struct WebIntentData; 51 struct WebIntentData;
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 virtual void Activate() OVERRIDE; 296 virtual void Activate() OVERRIDE;
296 virtual void Deactivate() OVERRIDE; 297 virtual void Deactivate() OVERRIDE;
297 virtual void LostCapture() OVERRIDE; 298 virtual void LostCapture() OVERRIDE;
298 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, 299 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event,
299 bool* is_keyboard_shortcut) OVERRIDE; 300 bool* is_keyboard_shortcut) OVERRIDE;
300 virtual void HandleKeyboardEvent( 301 virtual void HandleKeyboardEvent(
301 const NativeWebKeyboardEvent& event) OVERRIDE; 302 const NativeWebKeyboardEvent& event) OVERRIDE;
302 virtual void HandleMouseDown() OVERRIDE; 303 virtual void HandleMouseDown() OVERRIDE;
303 virtual void HandleMouseUp() OVERRIDE; 304 virtual void HandleMouseUp() OVERRIDE;
304 virtual void HandleMouseActivate() OVERRIDE; 305 virtual void HandleMouseActivate() OVERRIDE;
306 virtual void OnOpenColorChooser(int color_chooser_id,
jam 2012/02/27 22:06:25 this section is for virtual methods, not message h
keishi 2012/02/28 11:27:45 Done.
307 const SkColor& color);
308 virtual void OnEndColorChooser(int color_chooser_id);
309 virtual void OnSetSelectedColorInColorChooser(int color_chooser_id,
310 const SkColor& color);
311 virtual void DidEndColorChooser() OVERRIDE;
305 virtual void RunFileChooser( 312 virtual void RunFileChooser(
306 RenderViewHost* render_view_host, 313 RenderViewHost* render_view_host,
307 const content::FileChooserParams& params) OVERRIDE; 314 const content::FileChooserParams& params) OVERRIDE;
308 virtual void ToggleFullscreenMode(bool enter_fullscreen) OVERRIDE; 315 virtual void ToggleFullscreenMode(bool enter_fullscreen) OVERRIDE;
309 virtual bool IsFullscreenForCurrentTab() const OVERRIDE; 316 virtual bool IsFullscreenForCurrentTab() const OVERRIDE;
310 virtual void UpdatePreferredSize(const gfx::Size& pref_size) OVERRIDE; 317 virtual void UpdatePreferredSize(const gfx::Size& pref_size) OVERRIDE;
311 virtual void WebUISend(RenderViewHost* render_view_host, 318 virtual void WebUISend(RenderViewHost* render_view_host,
312 const GURL& source_url, 319 const GURL& source_url,
313 const std::string& name, 320 const std::string& name,
314 const base::ListValue& args) OVERRIDE; 321 const base::ListValue& args) OVERRIDE;
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 // The intrinsic size of the page. 648 // The intrinsic size of the page.
642 gfx::Size preferred_size_; 649 gfx::Size preferred_size_;
643 650
644 // Content restrictions, used to disable print/copy etc based on content's 651 // Content restrictions, used to disable print/copy etc based on content's
645 // (full-page plugins for now only) permissions. 652 // (full-page plugins for now only) permissions.
646 int content_restrictions_; 653 int content_restrictions_;
647 654
648 // Our view type. Default is VIEW_TYPE_TAB_CONTENTS. 655 // Our view type. Default is VIEW_TYPE_TAB_CONTENTS.
649 content::ViewType view_type_; 656 content::ViewType view_type_;
650 657
658 content::ColorChooser* color_chooser_;
659
651 DISALLOW_COPY_AND_ASSIGN(TabContents); 660 DISALLOW_COPY_AND_ASSIGN(TabContents);
652 }; 661 };
653 662
654 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 663 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698