| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 double item_font_size, | 69 double item_font_size, |
| 70 int selected_item, | 70 int selected_item, |
| 71 const std::vector<MenuItem>& items, | 71 const std::vector<MenuItem>& items, |
| 72 bool right_aligned, | 72 bool right_aligned, |
| 73 bool allow_multiple_selection) {}; | 73 bool allow_multiple_selection) {}; |
| 74 | 74 |
| 75 // Hides a popup menu opened by ShowPopupMenu(). | 75 // Hides a popup menu opened by ShowPopupMenu(). |
| 76 virtual void HidePopupMenu() {}; | 76 virtual void HidePopupMenu() {}; |
| 77 #endif | 77 #endif |
| 78 | 78 |
| 79 #if defined(TOOLKIT_VIEWS) |
| 80 // Shows a Link Disambiguation Popup. |target_rect| is the area the user |
| 81 // touched that resulted in ambiguity, in DIPs in the host's coordinate |
| 82 // system, and |zoomed_bitmap| is an enlarged image of that |target_rect|. |
| 83 virtual void ShowDisambiguationPopup(const gfx::Rect& target_rect, |
| 84 const SkBitmap& zoomed_bitmap) {} |
| 85 |
| 86 // Hides the Link Disambiguation Popup, if it was showing, otherwise does |
| 87 // nothing. |
| 88 virtual void HideDisambiguationPopup() {} |
| 89 #endif |
| 90 |
| 79 protected: | 91 protected: |
| 80 virtual ~RenderViewHostDelegateView() {} | 92 virtual ~RenderViewHostDelegateView() {} |
| 81 }; | 93 }; |
| 82 | 94 |
| 83 } // namespace content | 95 } // namespace content |
| 84 | 96 |
| 85 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_VIEW_H_ | 97 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_VIEW_H_ |
| OLD | NEW |