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: chrome/browser/ui/views/location_bar/location_bar_view.h

Issue 6685069: Disambiguate OnMouseCaptureLost from OnMouseReleased, etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments, fix tests, cleanup, etc. 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_LOCATION_BAR_LOCATION_BAR_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 virtual void SetShowFocusRect(bool show); 177 virtual void SetShowFocusRect(bool show);
178 178
179 // Select all of the text. Needed when the user tabs through controls 179 // Select all of the text. Needed when the user tabs through controls
180 // in the toolbar in full keyboard accessibility mode. 180 // in the toolbar in full keyboard accessibility mode.
181 virtual void SelectAll(); 181 virtual void SelectAll();
182 182
183 #if defined(OS_WIN) 183 #if defined(OS_WIN)
184 // Event Handlers 184 // Event Handlers
185 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE; 185 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE;
186 virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE; 186 virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE;
187 virtual void OnMouseReleased(const views::MouseEvent& event, 187 virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE;
188 bool canceled) OVERRIDE; 188 virtual void OnMouseCaptureLost() OVERRIDE;
189 #endif 189 #endif
190 190
191 const LocationIconView* location_icon_view() const { 191 const LocationIconView* location_icon_view() const {
192 return location_icon_view_; 192 return location_icon_view_;
193 } 193 }
194 194
195 // AutocompleteEditController 195 // AutocompleteEditController
196 virtual void OnAutocompleteAccept(const GURL& url, 196 virtual void OnAutocompleteAccept(const GURL& url,
197 WindowOpenDisposition disposition, 197 WindowOpenDisposition disposition,
198 PageTransition::Type transition, 198 PageTransition::Type transition,
199 const GURL& alternate_nav_url) OVERRIDE; 199 const GURL& alternate_nav_url) OVERRIDE;
200 virtual void OnChanged() OVERRIDE; 200 virtual void OnChanged() OVERRIDE;
201 virtual void OnSelectionBoundsChanged() OVERRIDE; 201 virtual void OnSelectionBoundsChanged() OVERRIDE;
202 virtual void OnInputInProgress(bool in_progress) OVERRIDE; 202 virtual void OnInputInProgress(bool in_progress) OVERRIDE;
203 virtual void OnKillFocus() OVERRIDE; 203 virtual void OnKillFocus() OVERRIDE;
204 virtual void OnSetFocus() OVERRIDE; 204 virtual void OnSetFocus() OVERRIDE;
205 virtual SkBitmap GetFavicon() const OVERRIDE; 205 virtual SkBitmap GetFavicon() const OVERRIDE;
206 virtual string16 GetTitle() const OVERRIDE; 206 virtual string16 GetTitle() const OVERRIDE;
207 virtual InstantController* GetInstant() OVERRIDE; 207 virtual InstantController* GetInstant() OVERRIDE;
208 virtual TabContentsWrapper* GetTabContentsWrapper() OVERRIDE; 208 virtual TabContentsWrapper* GetTabContentsWrapper() OVERRIDE;
209 209
210 // Overridden from views::View: 210 // Overridden from views::View:
211 virtual std::string GetClassName() const OVERRIDE; 211 virtual std::string GetClassName() const OVERRIDE;
212 virtual bool SkipDefaultKeyEventProcessing(const views::KeyEvent& e) OVERRIDE; 212 virtual bool SkipDefaultKeyEventProcessing(const views::KeyEvent& event)
213 OVERRIDE;
213 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; 214 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
214 215
215 // Overridden from views::DragController: 216 // Overridden from views::DragController:
216 virtual void WriteDragDataForView(View* sender, 217 virtual void WriteDragDataForView(View* sender,
217 const gfx::Point& press_pt, 218 const gfx::Point& press_pt,
218 OSExchangeData* data) OVERRIDE; 219 OSExchangeData* data) OVERRIDE;
219 virtual int GetDragOperationsForView(View* sender, 220 virtual int GetDragOperationsForView(View* sender,
220 const gfx::Point& p) OVERRIDE; 221 const gfx::Point& p) OVERRIDE;
221 virtual bool CanStartDragForView(View* sender, 222 virtual bool CanStartDragForView(View* sender,
222 const gfx::Point& press_pt, 223 const gfx::Point& press_pt,
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 400
400 // This is in case we're destroyed before the model loads. We store the model 401 // This is in case we're destroyed before the model loads. We store the model
401 // because calling profile_->GetTemplateURLModel() in the destructor causes a 402 // because calling profile_->GetTemplateURLModel() in the destructor causes a
402 // crash. 403 // crash.
403 TemplateURLModel* template_url_model_; 404 TemplateURLModel* template_url_model_;
404 405
405 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView); 406 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView);
406 }; 407 };
407 408
408 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ 409 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698