Chromium Code Reviews| 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 CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_VIEW_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_VIEW_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_VIEW_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_VIEW_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 66 virtual void UpdateDragCursor(blink::WebDragOperation operation) {} | 66 virtual void UpdateDragCursor(blink::WebDragOperation operation) {} |
| 67 | 67 |
| 68 // Notification that view for this delegate got the focus. | 68 // Notification that view for this delegate got the focus. |
| 69 virtual void GotFocus() {} | 69 virtual void GotFocus() {} |
| 70 | 70 |
| 71 // Callback to inform the browser that the page is returning the focus to | 71 // Callback to inform the browser that the page is returning the focus to |
| 72 // the browser's chrome. If reverse is true, it means the focus was | 72 // the browser's chrome. If reverse is true, it means the focus was |
| 73 // retrieved by doing a Shift-Tab. | 73 // retrieved by doing a Shift-Tab. |
| 74 virtual void TakeFocus(bool reverse) {} | 74 virtual void TakeFocus(bool reverse) {} |
| 75 | 75 |
| 76 #if defined(OS_WIN) | |
|
sky
2014/08/04 20:05:19
OS_WIN->TOOLKIT_VIEWS
luken
2014/09/11 01:07:27
Done.
| |
| 77 // Shows a Link Disambiguation Popup. |target_rect| is the area the user | |
| 78 // touched that resulted in ambiguity, in DIPs in the host's coordinate | |
| 79 // system, and |zoomed_bitmap| is an enlarged image of that |target_rect|. | |
| 80 virtual void ShowDisambiguationPopup(const gfx::Rect& target_rect, | |
| 81 const SkBitmap& zoomed_bitmap) {} | |
| 82 | |
| 83 // Hides the Link Disambiguation Popup, if it was showing, otherwise does | |
| 84 // nothing. | |
| 85 virtual void HideDisambiguationPopup() {} | |
| 86 #endif | |
| 87 | |
| 76 protected: | 88 protected: |
| 77 virtual ~RenderViewHostDelegateView() {} | 89 virtual ~RenderViewHostDelegateView() {} |
| 78 }; | 90 }; |
| 79 | 91 |
| 80 } // namespace content | 92 } // namespace content |
| 81 | 93 |
| 82 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_VIEW_H_ | 94 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_VIEW_H_ |
| OLD | NEW |