| 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 // This file defines the interface class OmniboxPopupView. Each toolkit | 5 // This file defines the interface class OmniboxPopupView. Each toolkit |
| 6 // will implement the popup view differently, so that code is inherently | 6 // will implement the popup view differently, so that code is inherently |
| 7 // platform specific. However, the OmniboxPopupModel needs to do some | 7 // platform specific. However, the OmniboxPopupModel needs to do some |
| 8 // communication with the view. Since the model is shared between platforms, | 8 // communication with the view. Since the model is shared between platforms, |
| 9 // we need to define an interface that all view implementations will share. | 9 // we need to define an interface that all view implementations will share. |
| 10 | 10 |
| 11 #ifndef COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_POPUP_VIEW_H_ | 11 #ifndef COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_POPUP_VIEW_H_ |
| 12 #define COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_POPUP_VIEW_H_ | 12 #define COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_POPUP_VIEW_H_ |
| 13 | 13 |
| 14 #include <stddef.h> |
| 15 |
| 14 #include "build/build_config.h" | 16 #include "build/build_config.h" |
| 15 | 17 |
| 16 namespace gfx { | 18 namespace gfx { |
| 17 class Rect; | 19 class Rect; |
| 18 } | 20 } |
| 19 | 21 |
| 20 class OmniboxPopupView { | 22 class OmniboxPopupView { |
| 21 public: | 23 public: |
| 22 virtual ~OmniboxPopupView() {} | 24 virtual ~OmniboxPopupView() {} |
| 23 | 25 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 43 virtual void PaintUpdatesNow() = 0; | 45 virtual void PaintUpdatesNow() = 0; |
| 44 | 46 |
| 45 // This method is called when the view should cancel any active drag (e.g. | 47 // This method is called when the view should cancel any active drag (e.g. |
| 46 // because the user pressed ESC). The view may or may not need to take any | 48 // because the user pressed ESC). The view may or may not need to take any |
| 47 // action (e.g. releasing mouse capture). Note that this can be called when | 49 // action (e.g. releasing mouse capture). Note that this can be called when |
| 48 // no drag is in progress. | 50 // no drag is in progress. |
| 49 virtual void OnDragCanceled() = 0; | 51 virtual void OnDragCanceled() = 0; |
| 50 }; | 52 }; |
| 51 | 53 |
| 52 #endif // COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_POPUP_VIEW_H_ | 54 #endif // COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_POPUP_VIEW_H_ |
| OLD | NEW |