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

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: Fixed android build Created 7 years, 7 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
« no previous file with comments | « content/public/browser/color_chooser.h ('k') | content/public/browser/web_contents_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 386
387 // Get the content restrictions (see content::ContentRestriction). 387 // Get the content restrictions (see content::ContentRestriction).
388 virtual int GetContentRestrictions() const = 0; 388 virtual int GetContentRestrictions() const = 0;
389 389
390 // Called when the reponse to a pending mouse lock request has arrived. 390 // Called when the reponse to a pending mouse lock request has arrived.
391 // Returns true if |allowed| is true and the mouse has been successfully 391 // Returns true if |allowed| is true and the mouse has been successfully
392 // locked. 392 // locked.
393 virtual bool GotResponseToLockMouseRequest(bool allowed) = 0; 393 virtual bool GotResponseToLockMouseRequest(bool allowed) = 0;
394 394
395 // Called when the user has selected a color in the color chooser. 395 // Called when the user has selected a color in the color chooser.
396 virtual void DidChooseColorInColorChooser(int color_chooser_id, 396 virtual void DidChooseColorInColorChooser(SkColor color) = 0;
397 SkColor color) = 0;
398 397
399 // Called when the color chooser has ended. 398 // Called when the color chooser has ended.
400 virtual void DidEndColorChooser(int color_chooser_id) = 0; 399 virtual void DidEndColorChooser() = 0;
401 400
402 // Returns true if the location bar should be focused by default rather than 401 // Returns true if the location bar should be focused by default rather than
403 // the page contents. The view calls this function when the tab is focused 402 // the page contents. The view calls this function when the tab is focused
404 // to see what it should do. 403 // to see what it should do.
405 virtual bool FocusLocationBarByDefault() = 0; 404 virtual bool FocusLocationBarByDefault() = 0;
406 405
407 // Does this have an opener associated with it? 406 // Does this have an opener associated with it?
408 virtual bool HasOpener() const = 0; 407 virtual bool HasOpener() const = 0;
409 408
410 typedef base::Callback<void(int, /* id */ 409 typedef base::Callback<void(int, /* id */
(...skipping 17 matching lines...) Expand all
428 427
429 private: 428 private:
430 // This interface should only be implemented inside content. 429 // This interface should only be implemented inside content.
431 friend class WebContentsImpl; 430 friend class WebContentsImpl;
432 WebContents() {} 431 WebContents() {}
433 }; 432 };
434 433
435 } // namespace content 434 } // namespace content
436 435
437 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 436 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW
« no previous file with comments | « content/public/browser/color_chooser.h ('k') | content/public/browser/web_contents_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698