| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "chrome/browser/tab_contents/web_contents_view_gtk.h" | 5 #include "chrome/browser/tab_contents/web_contents_view_gtk.h" |
| 6 | 6 |
| 7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
| 8 | 8 |
| 9 #include "base/gfx/point.h" | 9 #include "base/gfx/point.h" |
| 10 #include "base/gfx/rect.h" | 10 #include "base/gfx/rect.h" |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 void WebContentsViewGtk::UpdateDragCursor(bool is_drop_target) { | 139 void WebContentsViewGtk::UpdateDragCursor(bool is_drop_target) { |
| 140 NOTIMPLEMENTED(); | 140 NOTIMPLEMENTED(); |
| 141 } | 141 } |
| 142 | 142 |
| 143 // This is called when we the renderer asks us to take focus back (i.e., it has | 143 // This is called when we the renderer asks us to take focus back (i.e., it has |
| 144 // iterated past the last focusable element on the page). | 144 // iterated past the last focusable element on the page). |
| 145 void WebContentsViewGtk::TakeFocus(bool reverse) { | 145 void WebContentsViewGtk::TakeFocus(bool reverse) { |
| 146 web_contents_->delegate()->SetFocusToLocationBar(); | 146 web_contents_->delegate()->SetFocusToLocationBar(); |
| 147 } | 147 } |
| 148 | 148 |
| 149 void WebContentsViewGtk::HandleKeyboardEvent(const WebKeyboardEvent& event) { | 149 void WebContentsViewGtk::HandleKeyboardEvent(const NativeWebKeyboardEvent& event
) { |
| 150 // The renderer returned a keyboard event it did not process. This may be | 150 // The renderer returned a keyboard event it did not process. This may be |
| 151 // a keyboard shortcut that we have to process. | 151 // a keyboard shortcut that we have to process. |
| 152 // The windows code forwards this event onwards to accelerator handling, | 152 // The windows code forwards this event onwards to accelerator handling, |
| 153 // and then to DefWindowProc. TODO(port): should do something similar. | 153 // and then to DefWindowProc. TODO(port): should do something similar. |
| 154 NOTIMPLEMENTED(); | 154 NOTIMPLEMENTED(); |
| 155 } | 155 } |
| 156 | 156 |
| 157 void WebContentsViewGtk::OnFindReply(int request_id, | 157 void WebContentsViewGtk::OnFindReply(int request_id, |
| 158 int number_of_matches, | 158 int number_of_matches, |
| 159 const gfx::Rect& selection_rect, | 159 const gfx::Rect& selection_rect, |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 bool user_gesture) { | 191 bool user_gesture) { |
| 192 NOTIMPLEMENTED(); | 192 NOTIMPLEMENTED(); |
| 193 } | 193 } |
| 194 | 194 |
| 195 void WebContentsViewGtk::ShowCreatedWidgetInternal( | 195 void WebContentsViewGtk::ShowCreatedWidgetInternal( |
| 196 RenderWidgetHostView* widget_host_view, | 196 RenderWidgetHostView* widget_host_view, |
| 197 const gfx::Rect& initial_pos) { | 197 const gfx::Rect& initial_pos) { |
| 198 NOTIMPLEMENTED(); | 198 NOTIMPLEMENTED(); |
| 199 } | 199 } |
| 200 | 200 |
| OLD | NEW |