| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_VIEWS_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_VIEWS_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_VIEWS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 | 93 |
| 94 // Forwards a web keyboard event to renderer. | 94 // Forwards a web keyboard event to renderer. |
| 95 void ForwardWebKeyboardEvent(const NativeWebKeyboardEvent& event); | 95 void ForwardWebKeyboardEvent(const NativeWebKeyboardEvent& event); |
| 96 | 96 |
| 97 // Overridden from views::View. | 97 // Overridden from views::View. |
| 98 virtual std::string GetClassName() const OVERRIDE; | 98 virtual std::string GetClassName() const OVERRIDE; |
| 99 virtual gfx::NativeCursor GetCursorForPoint(ui::EventType type, | 99 virtual gfx::NativeCursor GetCursorForPoint(ui::EventType type, |
| 100 const gfx::Point& point) OVERRIDE; | 100 const gfx::Point& point) OVERRIDE; |
| 101 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE; | 101 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE; |
| 102 virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE; | 102 virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE; |
| 103 virtual void OnMouseReleased(const views::MouseEvent& event, | 103 virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE; |
| 104 bool canceled) OVERRIDE; | 104 virtual void OnMouseCaptureLost() OVERRIDE; |
| 105 virtual void OnMouseMoved(const views::MouseEvent& event) OVERRIDE; | 105 virtual void OnMouseMoved(const views::MouseEvent& event) OVERRIDE; |
| 106 virtual void OnMouseEntered(const views::MouseEvent& event) OVERRIDE; | 106 virtual void OnMouseEntered(const views::MouseEvent& event) OVERRIDE; |
| 107 virtual void OnMouseExited(const views::MouseEvent& event) OVERRIDE; | 107 virtual void OnMouseExited(const views::MouseEvent& event) OVERRIDE; |
| 108 virtual View::TouchStatus OnTouchEvent( | 108 virtual View::TouchStatus OnTouchEvent( |
| 109 const views::TouchEvent& event) OVERRIDE; | 109 const views::TouchEvent& event) OVERRIDE; |
| 110 virtual bool OnKeyPressed(const views::KeyEvent& event) OVERRIDE; | 110 virtual bool OnKeyPressed(const views::KeyEvent& event) OVERRIDE; |
| 111 virtual bool OnKeyReleased(const views::KeyEvent& event) OVERRIDE; | 111 virtual bool OnKeyReleased(const views::KeyEvent& event) OVERRIDE; |
| 112 virtual bool OnMouseWheel(const views::MouseWheelEvent& event) OVERRIDE; | 112 virtual bool OnMouseWheel(const views::MouseWheelEvent& event) OVERRIDE; |
| 113 | 113 |
| 114 protected: | 114 protected: |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 WebKit::WebTouchEvent touch_event_; | 183 WebKit::WebTouchEvent touch_event_; |
| 184 | 184 |
| 185 // Input method context used to translating sequence of key events into other | 185 // Input method context used to translating sequence of key events into other |
| 186 // languages. | 186 // languages. |
| 187 scoped_ptr<IMEContextHandler> ime_context_; | 187 scoped_ptr<IMEContextHandler> ime_context_; |
| 188 | 188 |
| 189 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewViews); | 189 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewViews); |
| 190 }; | 190 }; |
| 191 | 191 |
| 192 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_VIEWS_H_ | 192 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_VIEWS_H_ |
| OLD | NEW |