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

Side by Side Diff: chrome/browser/ui/views/omnibox/omnibox_view_win.h

Issue 10915069: Add Copy URL option to Omnibox context menu when URL is replaced by Instant Extended. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 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) 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_OMNIBOX_OMNIBOX_VIEW_WIN_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_WIN_H_
6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_WIN_H_ 6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_WIN_H_
7 7
8 #include <atlbase.h> 8 #include <atlbase.h>
9 #include <atlapp.h> 9 #include <atlapp.h>
10 #include <atlcrack.h> 10 #include <atlcrack.h>
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 int WidthNeededToDisplay(const string16& text) const; 380 int WidthNeededToDisplay(const string16& text) const;
381 381
382 // Real implementation of OnAfterPossibleChange() method. 382 // Real implementation of OnAfterPossibleChange() method.
383 // If |force_text_changed| is true, then the text_changed code will always be 383 // If |force_text_changed| is true, then the text_changed code will always be
384 // triggerred no matter if the text is actually changed or not. 384 // triggerred no matter if the text is actually changed or not.
385 bool OnAfterPossibleChangeInternal(bool force_text_changed); 385 bool OnAfterPossibleChangeInternal(bool force_text_changed);
386 386
387 // Common implementation for performing a drop on the edit view. 387 // Common implementation for performing a drop on the edit view.
388 int OnPerformDropImpl(const ui::DropTargetEvent& event, bool in_drag); 388 int OnPerformDropImpl(const ui::DropTargetEvent& event, bool in_drag);
389 389
390 // Whether to show the menu item for copying the URL.
391 bool ShouldEnableCopyURL() const;
392 void CopyURL();
393
390 // Handle of RichEdit dll. 394 // Handle of RichEdit dll.
391 static HMODULE loaded_library_module_; 395 static HMODULE loaded_library_module_;
392 396
393 scoped_ptr<OmniboxPopupView> popup_view_; 397 scoped_ptr<OmniboxPopupView> popup_view_;
394 398
395 // The parent view for the edit, used to align the popup and for 399 // The parent view for the edit, used to align the popup and for
396 // accessibility. 400 // accessibility.
397 LocationBarView* parent_view_; 401 LocationBarView* parent_view_;
398 402
399 // When true, the location bar view is read only and also is has a slightly 403 // When true, the location bar view is read only and also is has a slightly
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 // Instance of accessibility information and handling. 508 // Instance of accessibility information and handling.
505 mutable base::win::ScopedComPtr<IAccessible> autocomplete_accessibility_; 509 mutable base::win::ScopedComPtr<IAccessible> autocomplete_accessibility_;
506 510
507 // The native view host. 511 // The native view host.
508 views::NativeViewHost* native_view_host_; 512 views::NativeViewHost* native_view_host_;
509 513
510 DISALLOW_COPY_AND_ASSIGN(OmniboxViewWin); 514 DISALLOW_COPY_AND_ASSIGN(OmniboxViewWin);
511 }; 515 };
512 516
513 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_WIN_H_ 517 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_WIN_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_view_views.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