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

Side by Side Diff: chrome/browser/ui/views/location_bar/location_bar_view.h

Issue 10832282: Replace views::MouseEvent with ui::MouseEvent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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) 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_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 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 virtual void SelectAll(); 251 virtual void SelectAll();
252 252
253 const gfx::Font& font() const { return font_; } 253 const gfx::Font& font() const { return font_; }
254 254
255 // See description above field. 255 // See description above field.
256 void set_view_to_focus(views::View* view) { view_to_focus_ = view; } 256 void set_view_to_focus(views::View* view) { view_to_focus_ = view; }
257 views::View* view_to_focus() { return view_to_focus_; } 257 views::View* view_to_focus() { return view_to_focus_; }
258 258
259 #if defined(OS_WIN) && !defined(USE_AURA) 259 #if defined(OS_WIN) && !defined(USE_AURA)
260 // Event Handlers 260 // Event Handlers
261 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE; 261 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE;
262 virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE; 262 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE;
263 virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE; 263 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE;
264 virtual void OnMouseCaptureLost() OVERRIDE; 264 virtual void OnMouseCaptureLost() OVERRIDE;
265 #endif 265 #endif
266 266
267 LocationIconView* location_icon_view() { return location_icon_view_; } 267 LocationIconView* location_icon_view() { return location_icon_view_; }
268 const LocationIconView* location_icon_view() const { 268 const LocationIconView* location_icon_view() const {
269 return location_icon_view_; 269 return location_icon_view_;
270 } 270 }
271 271
272 views::View* location_entry_view() const { return location_entry_view_; } 272 views::View* location_entry_view() const { return location_entry_view_; }
273 273
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 415
416 // Update the views for the Page Actions, to reflect state changes for 416 // Update the views for the Page Actions, to reflect state changes for
417 // PageActions. 417 // PageActions.
418 void RefreshPageActionViews(); 418 void RefreshPageActionViews();
419 419
420 // Sets the visibility of view to new_vis. 420 // Sets the visibility of view to new_vis.
421 void ToggleVisibility(bool new_vis, views::View* view); 421 void ToggleVisibility(bool new_vis, views::View* view);
422 422
423 #if !defined(USE_AURA) 423 #if !defined(USE_AURA)
424 // Helper for the Mouse event handlers that does all the real work. 424 // Helper for the Mouse event handlers that does all the real work.
425 void OnMouseEvent(const views::MouseEvent& event, UINT msg); 425 void OnMouseEvent(const ui::MouseEvent& event, UINT msg);
426 #endif 426 #endif
427 427
428 // Returns true if the suggest text is valid. 428 // Returns true if the suggest text is valid.
429 bool HasValidSuggestText() const; 429 bool HasValidSuggestText() const;
430 430
431 // Helper to show the first run info bubble. 431 // Helper to show the first run info bubble.
432 void ShowFirstRunBubbleInternal(); 432 void ShowFirstRunBubbleInternal();
433 433
434 // Draw the background and the left border. 434 // Draw the background and the left border.
435 void PaintActionBoxBackground(gfx::Canvas* canvas, 435 void PaintActionBoxBackground(gfx::Canvas* canvas,
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 561
562 #if defined(USE_AURA) 562 #if defined(USE_AURA)
563 // Observer for a fade-in animation. 563 // Observer for a fade-in animation.
564 scoped_ptr<FadeAnimationObserver> fade_animation_observer_; 564 scoped_ptr<FadeAnimationObserver> fade_animation_observer_;
565 #endif 565 #endif
566 566
567 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView); 567 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView);
568 }; 568 };
569 569
570 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ 570 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/location_bar/ev_bubble_view.cc ('k') | chrome/browser/ui/views/location_bar/location_bar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698