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

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: Used static class member 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 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 // Returns the WebUI for the current state of the tab. This will either be 387 // Returns the WebUI for the current state of the tab. This will either be
388 // the pending WebUI, the committed WebUI, or NULL. 388 // the pending WebUI, the committed WebUI, or NULL.
389 virtual WebUI* GetWebUIForCurrentState()= 0; 389 virtual WebUI* GetWebUIForCurrentState()= 0;
390 390
391 // Called when the reponse to a pending mouse lock request has arrived. 391 // Called when the reponse to a pending mouse lock request has arrived.
392 // Returns true if |allowed| is true and the mouse has been successfully 392 // Returns true if |allowed| is true and the mouse has been successfully
393 // locked. 393 // locked.
394 virtual bool GotResponseToLockMouseRequest(bool allowed) = 0; 394 virtual bool GotResponseToLockMouseRequest(bool allowed) = 0;
395 395
396 // Called when the user has selected a color in the color chooser. 396 // Called when the user has selected a color in the color chooser.
397 virtual void DidChooseColorInColorChooser(int color_chooser_id, 397 virtual void DidChooseColorInColorChooser(SkColor color) = 0;
398 SkColor color) = 0;
399 398
400 // Called when the color chooser has ended. 399 // Called when the color chooser has ended.
401 virtual void DidEndColorChooser(int color_chooser_id) = 0; 400 virtual void DidEndColorChooser() = 0;
402 401
403 // Returns true if the location bar should be focused by default rather than 402 // Returns true if the location bar should be focused by default rather than
404 // the page contents. The view calls this function when the tab is focused 403 // the page contents. The view calls this function when the tab is focused
405 // to see what it should do. 404 // to see what it should do.
406 virtual bool FocusLocationBarByDefault() = 0; 405 virtual bool FocusLocationBarByDefault() = 0;
407 406
408 // Does this have an opener associated with it? 407 // Does this have an opener associated with it?
409 virtual bool HasOpener() const = 0; 408 virtual bool HasOpener() const = 0;
410 409
411 typedef base::Callback<void(int, /* id */ 410 typedef base::Callback<void(int, /* id */
(...skipping 16 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

Powered by Google App Engine
This is Rietveld 408576698