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

Side by Side Diff: chrome/browser/devtools/devtools_window.h

Issue 139983006: [DevTools] Handle frontend zoom similarly to tab zoom. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Specific is_devtools check Created 6 years, 10 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/devtools/devtools_window.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 CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_ 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_
6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_ 6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 virtual content::WebContents* OpenURLFromTab( 259 virtual content::WebContents* OpenURLFromTab(
260 content::WebContents* source, 260 content::WebContents* source,
261 const content::OpenURLParams& params) OVERRIDE; 261 const content::OpenURLParams& params) OVERRIDE;
262 virtual void AddNewContents(content::WebContents* source, 262 virtual void AddNewContents(content::WebContents* source,
263 content::WebContents* new_contents, 263 content::WebContents* new_contents,
264 WindowOpenDisposition disposition, 264 WindowOpenDisposition disposition,
265 const gfx::Rect& initial_pos, 265 const gfx::Rect& initial_pos,
266 bool user_gesture, 266 bool user_gesture,
267 bool* was_blocked) OVERRIDE; 267 bool* was_blocked) OVERRIDE;
268 virtual void CloseContents(content::WebContents* source) OVERRIDE; 268 virtual void CloseContents(content::WebContents* source) OVERRIDE;
269 virtual void ContentsZoomChange(bool zoom_in) OVERRIDE;
269 virtual void BeforeUnloadFired(content::WebContents* tab, 270 virtual void BeforeUnloadFired(content::WebContents* tab,
270 bool proceed, 271 bool proceed,
271 bool* proceed_to_fire_unload) OVERRIDE; 272 bool* proceed_to_fire_unload) OVERRIDE;
272 virtual bool PreHandleKeyboardEvent( 273 virtual bool PreHandleKeyboardEvent(
273 content::WebContents* source, 274 content::WebContents* source,
274 const content::NativeWebKeyboardEvent& event, 275 const content::NativeWebKeyboardEvent& event,
275 bool* is_keyboard_shortcut) OVERRIDE; 276 bool* is_keyboard_shortcut) OVERRIDE;
276 virtual void HandleKeyboardEvent( 277 virtual void HandleKeyboardEvent(
277 content::WebContents* source, 278 content::WebContents* source,
278 const content::NativeWebKeyboardEvent& event) OVERRIDE; 279 const content::NativeWebKeyboardEvent& event) OVERRIDE;
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 // from the inspected webcontents, see InterceptPageBeforeUnload for details. 388 // from the inspected webcontents, see InterceptPageBeforeUnload for details.
388 bool intercepted_page_beforeunload_; 389 bool intercepted_page_beforeunload_;
389 390
390 scoped_ptr<DevToolsEmbedderMessageDispatcher> embedder_message_dispatcher_; 391 scoped_ptr<DevToolsEmbedderMessageDispatcher> embedder_message_dispatcher_;
391 base::WeakPtrFactory<DevToolsWindow> weak_factory_; 392 base::WeakPtrFactory<DevToolsWindow> weak_factory_;
392 base::TimeTicks inspect_element_start_time_; 393 base::TimeTicks inspect_element_start_time_;
393 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); 394 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow);
394 }; 395 };
395 396
396 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_ 397 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/devtools/devtools_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698