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

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

Issue 482006: Make a shared app menu model and update win and mac to use it. Remove the NSM... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years 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/clipboard/clipboard.h" 9 #include "app/clipboard/clipboard.h"
10 #include "app/clipboard/scoped_clipboard_writer.h" 10 #include "app/clipboard/scoped_clipboard_writer.h"
(...skipping 25 matching lines...) Expand all
36 #include "chrome/browser/search_engines/template_url.h" 36 #include "chrome/browser/search_engines/template_url.h"
37 #include "chrome/browser/search_engines/template_url_model.h" 37 #include "chrome/browser/search_engines/template_url_model.h"
38 #include "chrome/browser/tab_contents/tab_contents.h" 38 #include "chrome/browser/tab_contents/tab_contents.h"
39 #include "chrome/browser/views/location_bar_view.h" 39 #include "chrome/browser/views/location_bar_view.h"
40 #include "chrome/common/gfx/utils.h" 40 #include "chrome/common/gfx/utils.h"
41 #include "chrome/common/notification_service.h" 41 #include "chrome/common/notification_service.h"
42 #include "googleurl/src/url_util.h" 42 #include "googleurl/src/url_util.h"
43 #include "grit/generated_resources.h" 43 #include "grit/generated_resources.h"
44 #include "net/base/escape.h" 44 #include "net/base/escape.h"
45 #include "skia/ext/skia_utils_win.h" 45 #include "skia/ext/skia_utils_win.h"
46 #include "views/controls/menu/menu_2.h"
47 #include "views/drag_utils.h" 46 #include "views/drag_utils.h"
48 #include "views/focus/focus_util_win.h" 47 #include "views/focus/focus_util_win.h"
49 #include "views/widget/widget.h" 48 #include "views/widget/widget.h"
50 49
51 #pragma comment(lib, "oleacc.lib") // Needed for accessibility support. 50 #pragma comment(lib, "oleacc.lib") // Needed for accessibility support.
52 51
53 /////////////////////////////////////////////////////////////////////////////// 52 ///////////////////////////////////////////////////////////////////////////////
54 // AutocompleteEditModel 53 // AutocompleteEditModel
55 54
56 namespace { 55 namespace {
(...skipping 2367 matching lines...) Expand 10 before | Expand all | Expand 10 after
2424 context_menu_contents_->AddItemWithStringId(IDS_PASTE_AND_GO, 2423 context_menu_contents_->AddItemWithStringId(IDS_PASTE_AND_GO,
2425 IDS_PASTE_AND_GO); 2424 IDS_PASTE_AND_GO);
2426 context_menu_contents_->AddSeparator(); 2425 context_menu_contents_->AddSeparator();
2427 context_menu_contents_->AddItemWithStringId(IDS_SELECT_ALL, IDS_SELECT_ALL); 2426 context_menu_contents_->AddItemWithStringId(IDS_SELECT_ALL, IDS_SELECT_ALL);
2428 context_menu_contents_->AddSeparator(); 2427 context_menu_contents_->AddSeparator();
2429 context_menu_contents_->AddItemWithStringId(IDS_EDIT_SEARCH_ENGINES, 2428 context_menu_contents_->AddItemWithStringId(IDS_EDIT_SEARCH_ENGINES,
2430 IDS_EDIT_SEARCH_ENGINES); 2429 IDS_EDIT_SEARCH_ENGINES);
2431 } 2430 }
2432 context_menu_.reset(new views::Menu2(context_menu_contents_.get())); 2431 context_menu_.reset(new views::Menu2(context_menu_contents_.get()));
2433 } 2432 }
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_edit_view_win.h ('k') | chrome/browser/cocoa/toolbar_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698