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

Unified Diff: chrome/browser/ui/views/options/cookies_view.cc

Issue 6628037: views: Moves TextfieldController/TextRange into their own headers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/options/cookies_view.cc
diff --git a/chrome/browser/ui/views/options/cookies_view.cc b/chrome/browser/ui/views/options/cookies_view.cc
index 5079266927ed651a7239a65a80322e922cb62cb1..05439cc5750f65265122c1128da73982c2795eea 100644
--- a/chrome/browser/ui/views/options/cookies_view.cc
+++ b/chrome/browser/ui/views/options/cookies_view.cc
@@ -21,10 +21,10 @@
#include "ui/gfx/canvas.h"
#include "ui/gfx/color_utils.h"
#include "views/border.h"
-#include "views/controls/label.h"
#include "views/controls/button/native_button.h"
-#include "views/controls/tree/tree_view.h"
+#include "views/controls/label.h"
#include "views/controls/textfield/textfield.h"
+#include "views/controls/tree/tree_view.h"
#include "views/layout/grid_layout.h"
#include "views/layout/layout_constants.h"
@@ -132,7 +132,7 @@ void CookiesView::ButtonPressed(
}
///////////////////////////////////////////////////////////////////////////////
-// CookiesView, views::Textfield::Controller implementation:
+// CookiesView, views::TextfieldController implementation:
void CookiesView::ContentsChanged(views::Textfield* sender,
const std::wstring& new_contents) {
@@ -157,6 +157,18 @@ bool CookiesView::HandleKeyEvent(views::Textfield* sender,
///////////////////////////////////////////////////////////////////////////////
// CookiesView, views::DialogDelegate implementation:
+int CookiesView::GetDialogButtons() const {
+ return MessageBoxFlags::DIALOGBUTTON_CANCEL;
+}
+
+views::View* CookiesView::GetInitiallyFocusedView() {
+ return search_field_;
+}
+
+bool CookiesView::CanResize() const {
+ return true;
+}
+
std::wstring CookiesView::GetWindowTitle() const {
return UTF16ToWide(
l10n_util::GetStringUTF16(IDS_COOKIES_WEBSITE_PERMISSIONS_WINDOW_TITLE));
« no previous file with comments | « chrome/browser/ui/views/options/cookies_view.h ('k') | chrome/browser/ui/views/options/exception_editor_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698