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

Side by Side Diff: win8/metro_driver/chrome_app_view.h

Issue 11412265: Fix Aura Release compile break in metro_driver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | win8/metro_driver/metro_driver.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef WIN8_METRO_DRIVER_CHROME_APP_VIEW_H_ 5 #ifndef WIN8_METRO_DRIVER_CHROME_APP_VIEW_H_
6 #define WIN8_METRO_DRIVER_CHROME_APP_VIEW_H_ 6 #define WIN8_METRO_DRIVER_CHROME_APP_VIEW_H_
7 7
8 #include <windows.applicationmodel.core.h> 8 #include <windows.applicationmodel.core.h>
9 #include <windows.ui.core.h> 9 #include <windows.ui.core.h>
10 #include <windows.ui.input.h> 10 #include <windows.ui.input.h>
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 base::Lock notification_lock_; 132 base::Lock notification_lock_;
133 133
134 // If the OSK covers the input area we scroll the window by the height of the 134 // If the OSK covers the input area we scroll the window by the height of the
135 // OSK + an additional offset. This member holds this offset. Set to 0 if the 135 // OSK + an additional offset. This member holds this offset. Set to 0 if the
136 // window was not scrolled. 136 // window was not scrolled.
137 int osk_offset_adjustment_; 137 int osk_offset_adjustment_;
138 138
139 MetroDialogBox dialog_box_; 139 MetroDialogBox dialog_box_;
140 }; 140 };
141 141
142 // This function is exported by chrome.exe.
143 typedef int (__cdecl *BreakpadExceptionHandler)(EXCEPTION_POINTERS* info);
144
145 // Global information used across the metro driver. 142 // Global information used across the metro driver.
146 struct Globals { 143 struct Globals {
147 LPTHREAD_START_ROUTINE host_main; 144 LPTHREAD_START_ROUTINE host_main;
148 void* host_context; 145 void* host_context;
149 HWND core_window; 146 HWND core_window;
150 // The pair below contains the HWND and a bool which indicates whether the 147 // The pair below contains the HWND and a bool which indicates whether the
151 // window was displaced to ensure that the focused region is visible when 148 // window was displaced to ensure that the focused region is visible when
152 // the OSK is displayed. 149 // the OSK is displayed.
153 std::list<std::pair<HWND, bool> > host_windows; 150 std::list<std::pair<HWND, bool> > host_windows;
154 HANDLE host_thread; 151 HANDLE host_thread;
155 DWORD main_thread_id; 152 DWORD main_thread_id;
156 ChromeAppView* view; 153 ChromeAppView* view;
157 WNDPROC g_core_proc; 154 WNDPROC g_core_proc;
158 string16 navigation_url; 155 string16 navigation_url;
159 string16 search_string; 156 string16 search_string;
160 winapp::Activation::ApplicationExecutionState previous_state; 157 winapp::Activation::ApplicationExecutionState previous_state;
161 winapp::Activation::ActivationKind initial_activation_kind; 158 winapp::Activation::ActivationKind initial_activation_kind;
162 bool is_initial_activation; 159 bool is_initial_activation;
163 // This message loop lives in the app view's thread. Some operations have 160 // This message loop lives in the app view's thread. Some operations have
164 // to be initiated from that thread, notably spawning file pickers. 161 // to be initiated from that thread, notably spawning file pickers.
165 base::MessageLoopProxy* appview_msg_loop; 162 base::MessageLoopProxy* appview_msg_loop;
166 winapp::Core::ICoreApplicationExit* app_exit; 163 winapp::Core::ICoreApplicationExit* app_exit;
167 BreakpadExceptionHandler breakpad_exception_handler;
168 string16 metro_command_line_switches; 164 string16 metro_command_line_switches;
169 }; 165 };
170 166
171 extern Globals globals; 167 extern Globals globals;
172 168
173 #endif // WIN8_METRO_DRIVER_CHROME_APP_VIEW_H_ 169 #endif // WIN8_METRO_DRIVER_CHROME_APP_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | win8/metro_driver/metro_driver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698