Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(100)

Unified Diff: views/controls/native/native_view_host_win.h

Issue 214029: Adding focus to NaviteViewHost. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « views/controls/native/native_view_host_gtk.cc ('k') | views/controls/native/native_view_host_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/native/native_view_host_win.h
===================================================================
--- views/controls/native/native_view_host_win.h (revision 27081)
+++ views/controls/native/native_view_host_win.h (working copy)
@@ -2,9 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef VIEWS_CONTROLS_HWND_VIEW_H_
-#define VIEWS_CONTROLS_HWND_VIEW_H_
+#ifndef VIEWS_CONTROL_NATIVE_NATIVE_VIEW_HOST_WIN_H_
+#define VIEWS_CONTROL_NATIVE_NATIVE_VIEW_HOST_WIN_H_
+#include "windows.h"
+
#include "base/logging.h"
#include "views/controls/native/native_view_host_wrapper.h"
@@ -28,9 +30,14 @@
virtual void UninstallClip();
virtual void ShowWidget(int x, int y, int w, int h);
virtual void HideWidget();
- virtual void SetFocus();
private:
+ // Our subclass window procedure.
+ static LRESULT CALLBACK NativeViewHostWndProc(HWND window,
+ UINT message,
+ WPARAM w_param,
+ LPARAM l_param);
+
// Our associated NativeViewHost.
NativeViewHost* host_;
@@ -38,9 +45,12 @@
// visible portion of the gfx::NativeView ?
bool installed_clip_;
+ // The window procedure before we subclassed.
+ WNDPROC original_wndproc_;
+
DISALLOW_COPY_AND_ASSIGN(NativeViewHostWin);
};
} // namespace views
-#endif // VIEWS_CONTROLS_HWND_VIEW_H_
+#endif // VIEWS_CONTROL_NATIVE_NATIVE_VIEW_HOST_WIN_H_
« no previous file with comments | « views/controls/native/native_view_host_gtk.cc ('k') | views/controls/native/native_view_host_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698