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

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: Rebased 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
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 16 matching lines...) Expand all
427 426
428 private: 427 private:
429 // This interface should only be implemented inside content. 428 // This interface should only be implemented inside content.
430 friend class WebContentsImpl; 429 friend class WebContentsImpl;
431 WebContents() {} 430 WebContents() {}
432 }; 431 };
433 432
434 } // namespace content 433 } // namespace content
435 434
436 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 435 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698