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

Side by Side Diff: content/public/browser/web_contents.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: Removed chrome/browser/ui/color_chooser.cc Created 7 years, 8 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_PUBLIC_BROWSER_WEB_CONTENTS_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback_forward.h" 9 #include "base/callback_forward.h"
10 #include "base/process_util.h" 10 #include "base/process_util.h"
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 381
382 // Get the content restrictions (see content::ContentRestriction). 382 // Get the content restrictions (see content::ContentRestriction).
383 virtual int GetContentRestrictions() const = 0; 383 virtual int GetContentRestrictions() const = 0;
384 384
385 // Called when the reponse to a pending mouse lock request has arrived. 385 // Called when the reponse to a pending mouse lock request has arrived.
386 // Returns true if |allowed| is true and the mouse has been successfully 386 // Returns true if |allowed| is true and the mouse has been successfully
387 // locked. 387 // locked.
388 virtual bool GotResponseToLockMouseRequest(bool allowed) = 0; 388 virtual bool GotResponseToLockMouseRequest(bool allowed) = 0;
389 389
390 // Called when the user has selected a color in the color chooser. 390 // Called when the user has selected a color in the color chooser.
391 virtual void DidChooseColorInColorChooser(int color_chooser_id, 391 virtual void DidChooseColorInColorChooser(SkColor color) = 0;
392 SkColor color) = 0;
393 392
394 // Called when the color chooser has ended. 393 // Called when the color chooser has ended.
395 virtual void DidEndColorChooser(int color_chooser_id) = 0; 394 virtual void DidEndColorChooser() = 0;
396 395
397 // Returns true if the location bar should be focused by default rather than 396 // Returns true if the location bar should be focused by default rather than
398 // the page contents. The view calls this function when the tab is focused 397 // the page contents. The view calls this function when the tab is focused
399 // to see what it should do. 398 // to see what it should do.
400 virtual bool FocusLocationBarByDefault() = 0; 399 virtual bool FocusLocationBarByDefault() = 0;
401 400
402 // Does this have an opener associated with it? 401 // Does this have an opener associated with it?
403 virtual bool HasOpener() const = 0; 402 virtual bool HasOpener() const = 0;
404 403
405 typedef base::Callback<void(int, /* id */ 404 typedef base::Callback<void(int, /* id */
(...skipping 16 matching lines...) Expand all
422 421
423 private: 422 private:
424 // This interface should only be implemented inside content. 423 // This interface should only be implemented inside content.
425 friend class WebContentsImpl; 424 friend class WebContentsImpl;
426 WebContents() {} 425 WebContents() {}
427 }; 426 };
428 427
429 } // namespace content 428 } // namespace content
430 429
431 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 430 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698