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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <atlbase.h> | 9 #include <atlbase.h> |
10 #include <atlapp.h> | 10 #include <atlapp.h> |
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 const CRect& paint_clip_rect); | 367 const CRect& paint_clip_rect); |
368 | 368 |
369 // Renders the drop highlight. | 369 // Renders the drop highlight. |
370 void DrawDropHighlight(HDC hdc, | 370 void DrawDropHighlight(HDC hdc, |
371 const CRect& client_rect, | 371 const CRect& client_rect, |
372 const CRect& paint_clip_rect); | 372 const CRect& paint_clip_rect); |
373 | 373 |
374 // Internally invoked whenever the text changes in some way. | 374 // Internally invoked whenever the text changes in some way. |
375 void TextChanged(); | 375 void TextChanged(); |
376 | 376 |
377 // Returns the current clipboard contents as a string that can be pasted in. | |
378 // In addition to just getting CF_UNICODETEXT out, this can also extract URLs | |
379 // from bookmarks on the clipboard. | |
380 string16 GetClipboardText() const; | |
381 | |
382 // Determines whether the user can "paste and go", given the specified text. | 377 // Determines whether the user can "paste and go", given the specified text. |
383 bool CanPasteAndGo(const string16& text) const; | 378 bool CanPasteAndGo(const string16& text) const; |
384 | 379 |
385 // Getter for the text_object_model_. Note that the pointer returned here is | 380 // Getter for the text_object_model_. Note that the pointer returned here is |
386 // only valid as long as the AutocompleteEdit is still alive. Also, if the | 381 // only valid as long as the AutocompleteEdit is still alive. Also, if the |
387 // underlying call fails, this may return NULL. | 382 // underlying call fails, this may return NULL. |
388 ITextDocument* GetTextObjectModel() const; | 383 ITextDocument* GetTextObjectModel() const; |
389 | 384 |
390 // Invoked during a mouse move. As necessary starts a drag and drop session. | 385 // Invoked during a mouse move. As necessary starts a drag and drop session. |
391 void StartDragIfNecessary(const CPoint& point); | 386 void StartDragIfNecessary(const CPoint& point); |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
548 views::NativeViewHost* native_view_host_; | 543 views::NativeViewHost* native_view_host_; |
549 | 544 |
550 // ITextInputPanel to allow us to show the Windows virtual keyboard when a | 545 // ITextInputPanel to allow us to show the Windows virtual keyboard when a |
551 // user touches the Omnibox. | 546 // user touches the Omnibox. |
552 base::win::ScopedComPtr<ITextInputPanel> keyboard_; | 547 base::win::ScopedComPtr<ITextInputPanel> keyboard_; |
553 | 548 |
554 DISALLOW_COPY_AND_ASSIGN(OmniboxViewWin); | 549 DISALLOW_COPY_AND_ASSIGN(OmniboxViewWin); |
555 }; | 550 }; |
556 | 551 |
557 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_WIN_H_ | 552 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_WIN_H_ |
OLD | NEW |