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

Issue 10534153: Use OmniboxViewViews on Win with --enable-views-textfield. (Closed)

Created:
8 years, 6 months ago by msw
Modified:
8 years, 6 months ago
Reviewers:
oshima, sky
CC:
chromium-reviews, James Su
Visibility:
Public.

Description

Use OmniboxViewViews on Win with --enable-views-textfield. Add chrome/browser/ui/views/omnibox/omnibox_views.[cc|h]. Consolidate CreateOmniboxView into a non-member function. Add LocationBarView::use_omnibox_view_views_ state flag. Move/rename AsViews to GetOmniboxViewViews like Win variant. Remove OmniboxViewViews::GetRelativeWindowForPopup win code. Various cleanup, forward decl / include-what-you-use, etc. BUG=131660 TEST=Manual, use the flag to flip the Omnibox implementation. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=142507

Patch Set 1 #

Total comments: 5

Patch Set 2 : Move CreateOmniboxView out of the views namespace. #

Total comments: 2

Patch Set 3 : Add omnibox state and helper functions to LocationBarView. #

Patch Set 4 : Ignore Patch Set 3; use static bool in UseOmniboxViews(). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -113 lines) Patch
M chrome/browser/ui/omnibox/omnibox_view.h View 2 chunks +0 lines, -17 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.h View 3 2 chunks +0 lines, -12 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.cc View 1 2 3 10 chunks +49 lines, -34 lines 0 comments Download
M chrome/browser/ui/views/location_bar/page_info_helper.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/network_profile_bubble.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_views.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_views.cc View 3 chunks +0 lines, -28 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_win.cc View 1 chunk +0 lines, -18 lines 0 comments Download
A chrome/browser/ui/views/omnibox/omnibox_views.h View 1 1 chunk +23 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/omnibox/omnibox_views.cc View 1 1 chunk +32 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/toolbar_view.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/web_intent_picker_views.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
msw
Hey Scott and Oshima, PTAL; thanks!
8 years, 6 months ago (2012-06-14 01:15:42 UTC) #1
oshima
looks good, just a few questions. http://codereview.chromium.org/10534153/diff/1/chrome/browser/ui/views/location_bar/page_info_helper.cc File chrome/browser/ui/views/location_bar/page_info_helper.cc (right): http://codereview.chromium.org/10534153/diff/1/chrome/browser/ui/views/location_bar/page_info_helper.cc#newcode7 chrome/browser/ui/views/location_bar/page_info_helper.cc:7: #include "chrome/browser/ui/omnibox/omnibox_view.h" is ...
8 years, 6 months ago (2012-06-14 21:07:03 UTC) #2
msw
Updated, please take a look; thanks! https://chromiumcodereview.appspot.com/10534153/diff/1/chrome/browser/ui/views/location_bar/page_info_helper.cc File chrome/browser/ui/views/location_bar/page_info_helper.cc (right): https://chromiumcodereview.appspot.com/10534153/diff/1/chrome/browser/ui/views/location_bar/page_info_helper.cc#newcode7 chrome/browser/ui/views/location_bar/page_info_helper.cc:7: #include "chrome/browser/ui/omnibox/omnibox_view.h" On ...
8 years, 6 months ago (2012-06-14 21:30:21 UTC) #3
oshima
lgtm http://codereview.chromium.org/10534153/diff/1/chrome/browser/ui/views/location_bar/page_info_helper.cc File chrome/browser/ui/views/location_bar/page_info_helper.cc (right): http://codereview.chromium.org/10534153/diff/1/chrome/browser/ui/views/location_bar/page_info_helper.cc#newcode7 chrome/browser/ui/views/location_bar/page_info_helper.cc:7: #include "chrome/browser/ui/omnibox/omnibox_view.h" On 2012/06/14 21:30:21, msw wrote: > ...
8 years, 6 months ago (2012-06-14 21:41:11 UTC) #4
sky
http://codereview.chromium.org/10534153/diff/10002/chrome/browser/ui/views/location_bar/location_bar_view.cc File chrome/browser/ui/views/location_bar/location_bar_view.cc (right): http://codereview.chromium.org/10534153/diff/10002/chrome/browser/ui/views/location_bar/location_bar_view.cc#newcode92 chrome/browser/ui/views/location_bar/location_bar_view.cc:92: CommandLine* command_line = CommandLine::ForCurrentProcess(); This code is called alot, ...
8 years, 6 months ago (2012-06-14 23:04:46 UTC) #5
msw
https://chromiumcodereview.appspot.com/10534153/diff/10002/chrome/browser/ui/views/location_bar/location_bar_view.cc File chrome/browser/ui/views/location_bar/location_bar_view.cc (right): https://chromiumcodereview.appspot.com/10534153/diff/10002/chrome/browser/ui/views/location_bar/location_bar_view.cc#newcode92 chrome/browser/ui/views/location_bar/location_bar_view.cc:92: CommandLine* command_line = CommandLine::ForCurrentProcess(); On 2012/06/14 23:04:46, sky wrote: ...
8 years, 6 months ago (2012-06-15 00:19:28 UTC) #6
sky
I like the static bool approach. -Scott On Thu, Jun 14, 2012 at 5:19 PM, ...
8 years, 6 months ago (2012-06-15 14:35:52 UTC) #7
msw
Cool, here's the static bool approach (from PS2). Please take a look; thanks!
8 years, 6 months ago (2012-06-15 18:36:23 UTC) #8
sky
LGTM
8 years, 6 months ago (2012-06-15 20:19:09 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/10534153/17001
8 years, 6 months ago (2012-06-15 20:49:15 UTC) #10
commit-bot: I haz the power
8 years, 6 months ago (2012-06-15 22:36:51 UTC) #11
Change committed as 142507

Powered by Google App Engine
This is Rietveld 408576698