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 #include "views/view.h" | 5 #include "views/view.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
(...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
831 } | 831 } |
832 | 832 |
833 bool View::OnKeyReleased(const KeyEvent& event) { | 833 bool View::OnKeyReleased(const KeyEvent& event) { |
834 return false; | 834 return false; |
835 } | 835 } |
836 | 836 |
837 bool View::OnMouseWheel(const MouseWheelEvent& event) { | 837 bool View::OnMouseWheel(const MouseWheelEvent& event) { |
838 return false; | 838 return false; |
839 } | 839 } |
840 | 840 |
| 841 TextInputClient* View::GetTextInputClient() { |
| 842 return NULL; |
| 843 } |
| 844 |
| 845 InputMethod* View::GetInputMethod() { |
| 846 NOTIMPLEMENTED(); |
| 847 return NULL; |
| 848 } |
| 849 |
841 // Accelerators ---------------------------------------------------------------- | 850 // Accelerators ---------------------------------------------------------------- |
842 | 851 |
843 void View::AddAccelerator(const Accelerator& accelerator) { | 852 void View::AddAccelerator(const Accelerator& accelerator) { |
844 if (!accelerators_.get()) | 853 if (!accelerators_.get()) |
845 accelerators_.reset(new std::vector<Accelerator>()); | 854 accelerators_.reset(new std::vector<Accelerator>()); |
846 | 855 |
847 std::vector<Accelerator>::iterator iter = | 856 std::vector<Accelerator>::iterator iter = |
848 std::find(accelerators_->begin(), accelerators_->end(), accelerator); | 857 std::find(accelerators_->begin(), accelerators_->end(), accelerator); |
849 DCHECK(iter == accelerators_->end()) | 858 DCHECK(iter == accelerators_->end()) |
850 << "Registering the same accelerator multiple times"; | 859 << "Registering the same accelerator multiple times"; |
(...skipping 868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1719 | 1728 |
1720 OSExchangeData data; | 1729 OSExchangeData data; |
1721 WriteDragData(press_pt, &data); | 1730 WriteDragData(press_pt, &data); |
1722 | 1731 |
1723 // Message the RootView to do the drag and drop. That way if we're removed | 1732 // Message the RootView to do the drag and drop. That way if we're removed |
1724 // the RootView can detect it and avoid calling us back. | 1733 // the RootView can detect it and avoid calling us back. |
1725 GetWidget()->RunShellDrag(this, data, drag_operations); | 1734 GetWidget()->RunShellDrag(this, data, drag_operations); |
1726 } | 1735 } |
1727 | 1736 |
1728 } // namespace views | 1737 } // namespace views |
OLD | NEW |