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

Side by Side Diff: chrome/browser/autocomplete/autocomplete_edit_view_win.cc

Issue 194110: Convert the AutocompletePopupPositioner into a BubblePositioner in preparatio... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/autocomplete/autocomplete_edit_view_win.h" 5 #include "chrome/browser/autocomplete/autocomplete_edit_view_win.h"
6 6
7 #include <locale> 7 #include <locale>
8 8
9 #include "app/gfx/canvas.h" 9 #include "app/gfx/canvas.h"
10 #include "app/l10n_util.h" 10 #include "app/l10n_util.h"
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 384
385 AutocompleteEditViewWin::AutocompleteEditViewWin( 385 AutocompleteEditViewWin::AutocompleteEditViewWin(
386 const gfx::Font& font, 386 const gfx::Font& font,
387 AutocompleteEditController* controller, 387 AutocompleteEditController* controller,
388 ToolbarModel* toolbar_model, 388 ToolbarModel* toolbar_model,
389 views::View* parent_view, 389 views::View* parent_view,
390 HWND hwnd, 390 HWND hwnd,
391 Profile* profile, 391 Profile* profile,
392 CommandUpdater* command_updater, 392 CommandUpdater* command_updater,
393 bool popup_window_mode, 393 bool popup_window_mode,
394 AutocompletePopupPositioner* popup_positioner) 394 const BubblePositioner* bubble_positioner)
395 : model_(new AutocompleteEditModel(this, controller, profile)), 395 : model_(new AutocompleteEditModel(this, controller, profile)),
396 popup_view_(AutocompletePopupView::CreatePopupView(font, this, 396 popup_view_(AutocompletePopupView::CreatePopupView(
397 model_.get(), 397 font, this, model_.get(), profile, bubble_positioner)),
398 profile,
399 popup_positioner)),
400 controller_(controller), 398 controller_(controller),
401 parent_view_(parent_view), 399 parent_view_(parent_view),
402 toolbar_model_(toolbar_model), 400 toolbar_model_(toolbar_model),
403 command_updater_(command_updater), 401 command_updater_(command_updater),
404 popup_window_mode_(popup_window_mode), 402 popup_window_mode_(popup_window_mode),
405 force_hidden_(false), 403 force_hidden_(false),
406 tracking_click_(false), 404 tracking_click_(false),
407 tracking_double_click_(false), 405 tracking_double_click_(false),
408 double_click_time_(0), 406 double_click_time_(0),
409 can_discard_mousemove_(false), 407 can_discard_mousemove_(false),
(...skipping 1967 matching lines...) Expand 10 before | Expand all | Expand 10 after
2377 context_menu_contents_->AddItemWithStringId(IDS_PASTE_AND_GO, 2375 context_menu_contents_->AddItemWithStringId(IDS_PASTE_AND_GO,
2378 IDS_PASTE_AND_GO); 2376 IDS_PASTE_AND_GO);
2379 context_menu_contents_->AddSeparator(); 2377 context_menu_contents_->AddSeparator();
2380 context_menu_contents_->AddItemWithStringId(IDS_SELECT_ALL, IDS_SELECT_ALL); 2378 context_menu_contents_->AddItemWithStringId(IDS_SELECT_ALL, IDS_SELECT_ALL);
2381 context_menu_contents_->AddSeparator(); 2379 context_menu_contents_->AddSeparator();
2382 context_menu_contents_->AddItemWithStringId(IDS_EDIT_SEARCH_ENGINES, 2380 context_menu_contents_->AddItemWithStringId(IDS_EDIT_SEARCH_ENGINES,
2383 IDS_EDIT_SEARCH_ENGINES); 2381 IDS_EDIT_SEARCH_ENGINES);
2384 } 2382 }
2385 context_menu_.reset(new views::Menu2(context_menu_contents_.get())); 2383 context_menu_.reset(new views::Menu2(context_menu_contents_.get()));
2386 } 2384 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698