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

Side by Side Diff: chrome/browser/ui/views/omnibox/omnibox_view_views.h

Issue 11416327: Omnibox should accept and navigate URLs dropped using drag and drop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 8 years 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/ui/views/omnibox/omnibox_view_views.cc » ('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 CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ 6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 133
134 // views::TextfieldController: 134 // views::TextfieldController:
135 virtual void ContentsChanged(views::Textfield* sender, 135 virtual void ContentsChanged(views::Textfield* sender,
136 const string16& new_contents) OVERRIDE; 136 const string16& new_contents) OVERRIDE;
137 virtual bool HandleKeyEvent(views::Textfield* sender, 137 virtual bool HandleKeyEvent(views::Textfield* sender,
138 const ui::KeyEvent& key_event) OVERRIDE; 138 const ui::KeyEvent& key_event) OVERRIDE;
139 virtual void OnBeforeUserAction(views::Textfield* sender) OVERRIDE; 139 virtual void OnBeforeUserAction(views::Textfield* sender) OVERRIDE;
140 virtual void OnAfterUserAction(views::Textfield* sender) OVERRIDE; 140 virtual void OnAfterUserAction(views::Textfield* sender) OVERRIDE;
141 virtual void OnAfterCutOrCopy() OVERRIDE; 141 virtual void OnAfterCutOrCopy() OVERRIDE;
142 virtual void OnWriteDragData(ui::OSExchangeData* data) OVERRIDE; 142 virtual void OnWriteDragData(ui::OSExchangeData* data) OVERRIDE;
143 virtual void AppendDropFormats(
144 int* formats,
145 std::set<ui::OSExchangeData::CustomFormat>* custom_formats) OVERRIDE;
146 virtual int OnDrop(const ui::OSExchangeData& data) OVERRIDE;
143 virtual void UpdateContextMenu(ui::SimpleMenuModel* menu_contents) OVERRIDE; 147 virtual void UpdateContextMenu(ui::SimpleMenuModel* menu_contents) OVERRIDE;
144 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; 148 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE;
145 virtual bool IsItemForCommandIdDynamic(int command_id) const OVERRIDE; 149 virtual bool IsItemForCommandIdDynamic(int command_id) const OVERRIDE;
146 virtual string16 GetLabelForCommandId(int command_id) const OVERRIDE; 150 virtual string16 GetLabelForCommandId(int command_id) const OVERRIDE;
147 virtual bool HandlesCommand(int command_id) const OVERRIDE; 151 virtual bool HandlesCommand(int command_id) const OVERRIDE;
148 virtual void ExecuteCommand(int command_id) OVERRIDE; 152 virtual void ExecuteCommand(int command_id) OVERRIDE;
149 153
150 #if defined(OS_CHROMEOS) 154 #if defined(OS_CHROMEOS)
151 // chromeos::input_method::InputMethodManager::CandidateWindowObserver: 155 // chromeos::input_method::InputMethodManager::CandidateWindowObserver:
152 virtual void CandidateWindowOpened( 156 virtual void CandidateWindowOpened(
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 // Should we select all the text when we see the mouse button get released? 218 // Should we select all the text when we see the mouse button get released?
215 // We select in response to a click that focuses the omnibox, but we defer 219 // We select in response to a click that focuses the omnibox, but we defer
216 // until release, setting this variable back to false if we saw a drag, to 220 // until release, setting this variable back to false if we saw a drag, to
217 // allow the user to select just a portion of the text. 221 // allow the user to select just a portion of the text.
218 bool select_all_on_mouse_release_; 222 bool select_all_on_mouse_release_;
219 223
220 DISALLOW_COPY_AND_ASSIGN(OmniboxViewViews); 224 DISALLOW_COPY_AND_ASSIGN(OmniboxViewViews);
221 }; 225 };
222 226
223 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ 227 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/omnibox/omnibox_view_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698