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

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

Issue 147202: Added support for Text only zoom... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « chrome/app/chrome_dll_resource.h ('k') | chrome/browser/browser.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) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-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 #ifndef CHROME_BROWSER_BROWSER_H_ 5 #ifndef CHROME_BROWSER_BROWSER_H_
6 #define CHROME_BROWSER_BROWSER_H_ 6 #define CHROME_BROWSER_BROWSER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string>
9 #include <vector> 10 #include <vector>
10 11
11 #include "base/basictypes.h" 12 #include "base/basictypes.h"
12 #include "base/gfx/rect.h" 13 #include "base/gfx/rect.h"
13 #include "base/scoped_ptr.h" 14 #include "base/scoped_ptr.h"
14 #include "base/task.h" 15 #include "base/task.h"
15 #include "chrome/browser/command_updater.h" 16 #include "chrome/browser/command_updater.h"
16 #include "chrome/browser/extensions/extension_function_dispatcher.h" 17 #include "chrome/browser/extensions/extension_function_dispatcher.h"
17 #include "chrome/browser/sessions/session_id.h" 18 #include "chrome/browser/sessions/session_id.h"
18 #include "chrome/browser/shell_dialogs.h" 19 #include "chrome/browser/shell_dialogs.h"
19 #include "chrome/browser/tabs/tab_strip_model.h" 20 #include "chrome/browser/tabs/tab_strip_model.h"
20 #include "chrome/browser/tab_contents/page_navigator.h" 21 #include "chrome/browser/tab_contents/page_navigator.h"
21 #include "chrome/browser/tab_contents/tab_contents_delegate.h" 22 #include "chrome/browser/tab_contents/tab_contents_delegate.h"
22 #include "chrome/browser/toolbar_model.h" 23 #include "chrome/browser/toolbar_model.h"
23 #include "chrome/common/notification_registrar.h" 24 #include "chrome/common/notification_registrar.h"
25 #include "chrome/common/page_zoom.h"
24 #include "chrome/common/pref_member.h" 26 #include "chrome/common/pref_member.h"
25 #include "testing/gtest/include/gtest/gtest_prod.h" 27 #include "testing/gtest/include/gtest/gtest_prod.h"
26 28
27 class BrowserIdleTimer; 29 class BrowserIdleTimer;
28 class BrowserWindow; 30 class BrowserWindow;
29 class DebuggerWindow; 31 class DebuggerWindow;
30 class FindBarController; 32 class FindBarController;
31 class GoButton; 33 class GoButton;
32 class LocationBar; 34 class LocationBar;
33 class PrefService; 35 class PrefService;
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 339
338 // Find-in-page 340 // Find-in-page
339 void Find(); 341 void Find();
340 void FindNext(); 342 void FindNext();
341 void FindPrevious(); 343 void FindPrevious();
342 344
343 // Zoom 345 // Zoom
344 void ZoomIn(); 346 void ZoomIn();
345 void ZoomReset(); 347 void ZoomReset();
346 void ZoomOut(); 348 void ZoomOut();
349 void ZoomTextOnlyIn();
350 void ZoomTextOnlyOut();
347 351
348 // Focus various bits of UI 352 // Focus various bits of UI
349 void FocusToolbar(); 353 void FocusToolbar();
350 void FocusLocationBar(); 354 void FocusLocationBar();
351 void FocusSearch(); 355 void FocusSearch();
352 356
353 // Show various bits of UI 357 // Show various bits of UI
354 void OpenFile(); 358 void OpenFile();
355 void OpenCreateShortcutsDialog(); 359 void OpenCreateShortcutsDialog();
356 void OpenJavaScriptConsole(); 360 void OpenJavaScriptConsole();
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 virtual void ActivateContents(TabContents* contents); 468 virtual void ActivateContents(TabContents* contents);
465 virtual void LoadingStateChanged(TabContents* source); 469 virtual void LoadingStateChanged(TabContents* source);
466 virtual void CloseContents(TabContents* source); 470 virtual void CloseContents(TabContents* source);
467 virtual void MoveContents(TabContents* source, const gfx::Rect& pos); 471 virtual void MoveContents(TabContents* source, const gfx::Rect& pos);
468 virtual void DetachContents(TabContents* source); 472 virtual void DetachContents(TabContents* source);
469 virtual bool IsPopup(TabContents* source); 473 virtual bool IsPopup(TabContents* source);
470 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating); 474 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating);
471 virtual void URLStarredChanged(TabContents* source, bool starred); 475 virtual void URLStarredChanged(TabContents* source, bool starred);
472 virtual void UpdateTargetURL(TabContents* source, const GURL& url); 476 virtual void UpdateTargetURL(TabContents* source, const GURL& url);
473 virtual void ContentsMouseEvent(TabContents* source, bool motion); 477 virtual void ContentsMouseEvent(TabContents* source, bool motion);
474 virtual void ContentsZoomChange(bool zoom_in); 478 virtual void ContentsZoomChange(PageZoom::Function zoom_type);
475 virtual void TabContentsFocused(TabContents* tab_content); 479 virtual void TabContentsFocused(TabContents* tab_content);
476 virtual bool IsApplication() const; 480 virtual bool IsApplication() const;
477 virtual void ConvertContentsToApplication(TabContents* source); 481 virtual void ConvertContentsToApplication(TabContents* source);
478 virtual bool ShouldDisplayURLField(); 482 virtual bool ShouldDisplayURLField();
479 virtual gfx::Rect GetRootWindowResizerRect() const; 483 virtual gfx::Rect GetRootWindowResizerRect() const;
480 virtual void ShowHtmlDialog(HtmlDialogUIDelegate* delegate, 484 virtual void ShowHtmlDialog(HtmlDialogUIDelegate* delegate,
481 gfx::NativeWindow parent_window); 485 gfx::NativeWindow parent_window);
482 virtual void BeforeUnloadFired(TabContents* source, 486 virtual void BeforeUnloadFired(TabContents* source,
483 bool proceed, 487 bool proceed,
484 bool* proceed_to_fire_unload); 488 bool* proceed_to_fire_unload);
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
757 // The browser idle task helps cleanup unused memory resources when idle. 761 // The browser idle task helps cleanup unused memory resources when idle.
758 scoped_ptr<BrowserIdleTimer> idle_task_; 762 scoped_ptr<BrowserIdleTimer> idle_task_;
759 763
760 // Keep track of the encoding auto detect pref. 764 // Keep track of the encoding auto detect pref.
761 BooleanPrefMember encoding_auto_detect_; 765 BooleanPrefMember encoding_auto_detect_;
762 766
763 DISALLOW_COPY_AND_ASSIGN(Browser); 767 DISALLOW_COPY_AND_ASSIGN(Browser);
764 }; 768 };
765 769
766 #endif // CHROME_BROWSER_BROWSER_H_ 770 #endif // CHROME_BROWSER_BROWSER_H_
OLDNEW
« no previous file with comments | « chrome/app/chrome_dll_resource.h ('k') | chrome/browser/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698