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

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

Issue 7942004: Consolidate/cleanup event cracking code; single out GdkEvents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge removal of compact nav. Created 9 years, 2 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 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" 5 #include "chrome/browser/ui/views/location_bar/location_bar_view.h"
6 6
7 #if defined(TOOLKIT_USES_GTK) 7 #if defined(TOOLKIT_USES_GTK)
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 #endif 9 #endif
10 10
(...skipping 986 matching lines...) Expand 10 before | Expand all | Expand 10 after
997 chrome::NOTIFICATION_EXTENSION_PAGE_ACTION_VISIBILITY_CHANGED, 997 chrome::NOTIFICATION_EXTENSION_PAGE_ACTION_VISIBILITY_CHANGED,
998 Source<ExtensionAction>(action), 998 Source<ExtensionAction>(action),
999 Details<TabContents>(contents)); 999 Details<TabContents>(contents));
1000 } 1000 }
1001 } 1001 }
1002 } 1002 }
1003 } 1003 }
1004 1004
1005 #if defined(OS_WIN) && !defined(USE_AURA) 1005 #if defined(OS_WIN) && !defined(USE_AURA)
1006 void LocationBarView::OnMouseEvent(const views::MouseEvent& event, UINT msg) { 1006 void LocationBarView::OnMouseEvent(const views::MouseEvent& event, UINT msg) {
1007 UINT flags = event.GetWindowsFlags(); 1007 UINT flags = event.native_event().wParam;
1008 gfx::Point screen_point(event.location()); 1008 gfx::Point screen_point(event.location());
1009 ConvertPointToScreen(this, &screen_point); 1009 ConvertPointToScreen(this, &screen_point);
1010 if (views::Widget::IsPureViews()) 1010 if (views::Widget::IsPureViews())
1011 NOTIMPLEMENTED(); 1011 NOTIMPLEMENTED();
1012 else 1012 else
1013 GetOmniboxViewWin()->HandleExternalMsg(msg, flags, screen_point.ToPOINT()); 1013 GetOmniboxViewWin()->HandleExternalMsg(msg, flags, screen_point.ToPOINT());
1014 } 1014 }
1015 #endif 1015 #endif
1016 1016
1017 void LocationBarView::ShowFirstRunBubbleInternal( 1017 void LocationBarView::ShowFirstRunBubbleInternal(
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
1270 !suggested_text_view_->GetText().empty(); 1270 !suggested_text_view_->GetText().empty();
1271 } 1271 }
1272 1272
1273 #if !defined(USE_AURA) 1273 #if !defined(USE_AURA)
1274 OmniboxViewWin* LocationBarView::GetOmniboxViewWin() { 1274 OmniboxViewWin* LocationBarView::GetOmniboxViewWin() {
1275 CHECK(!views::Widget::IsPureViews()); 1275 CHECK(!views::Widget::IsPureViews());
1276 return static_cast<OmniboxViewWin*>(location_entry_.get()); 1276 return static_cast<OmniboxViewWin*>(location_entry_.get());
1277 } 1277 }
1278 #endif 1278 #endif
1279 #endif 1279 #endif
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/dropdown_bar_host_gtk.cc ('k') | chrome/browser/ui/views/omnibox/omnibox_view_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698