OLD | NEW |
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 Loading... |
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 ShouldAddCopyURL() 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 Loading... |
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_ |
OLD | NEW |