OLD | NEW |
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_UI_BROWSER_H_ | 5 #ifndef CHROME_BROWSER_UI_BROWSER_H_ |
6 #define CHROME_BROWSER_UI_BROWSER_H_ | 6 #define CHROME_BROWSER_UI_BROWSER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 static void JSOutOfMemoryHelper(content::WebContents* web_contents); | 385 static void JSOutOfMemoryHelper(content::WebContents* web_contents); |
386 | 386 |
387 // Helper function to register a protocol handler. | 387 // Helper function to register a protocol handler. |
388 static void RegisterProtocolHandlerHelper(content::WebContents* web_contents, | 388 static void RegisterProtocolHandlerHelper(content::WebContents* web_contents, |
389 const std::string& protocol, | 389 const std::string& protocol, |
390 const GURL& url, | 390 const GURL& url, |
391 const string16& title, | 391 const string16& title, |
392 bool user_gesture, | 392 bool user_gesture, |
393 BrowserWindow* window); | 393 BrowserWindow* window); |
394 | 394 |
395 // Helper function to register an intent handler. | |
396 // |data| is the registered handler data. |user_gesture| is true if the call | |
397 // was made in the context of a user gesture. | |
398 static void RegisterIntentHandlerHelper( | |
399 content::WebContents* web_contents, | |
400 const webkit_glue::WebIntentServiceData& data, | |
401 bool user_gesture); | |
402 | |
403 // Helper function to handle find results. | 395 // Helper function to handle find results. |
404 static void FindReplyHelper(content::WebContents* web_contents, | 396 static void FindReplyHelper(content::WebContents* web_contents, |
405 int request_id, | 397 int request_id, |
406 int number_of_matches, | 398 int number_of_matches, |
407 const gfx::Rect& selection_rect, | 399 const gfx::Rect& selection_rect, |
408 int active_match_ordinal, | 400 int active_match_ordinal, |
409 bool final_update); | 401 bool final_update); |
410 | 402 |
411 // Helper function to handle media access requests. | |
412 static void RequestMediaAccessPermissionHelper( | |
413 content::WebContents* web_contents, | |
414 const content::MediaStreamRequest& request, | |
415 const content::MediaResponseCallback& callback); | |
416 | |
417 // Called by chrome::Navigate() when a navigation has occurred in a tab in | 403 // Called by chrome::Navigate() when a navigation has occurred in a tab in |
418 // this Browser. Updates the UI for the start of this navigation. | 404 // this Browser. Updates the UI for the start of this navigation. |
419 void UpdateUIForNavigationInTab(content::WebContents* contents, | 405 void UpdateUIForNavigationInTab(content::WebContents* contents, |
420 content::PageTransition transition, | 406 content::PageTransition transition, |
421 bool user_initiated); | 407 bool user_initiated); |
422 | 408 |
423 // Interface implementations //////////////////////////////////////////////// | 409 // Interface implementations //////////////////////////////////////////////// |
424 | 410 |
425 // Overridden from content::PageNavigator: | 411 // Overridden from content::PageNavigator: |
426 virtual content::WebContents* OpenURL( | 412 virtual content::WebContents* OpenURL( |
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
960 bool window_has_shown_; | 946 bool window_has_shown_; |
961 | 947 |
962 // Currently open color chooser. Non-NULL after OpenColorChooser is called and | 948 // Currently open color chooser. Non-NULL after OpenColorChooser is called and |
963 // before DidEndColorChooser is called. | 949 // before DidEndColorChooser is called. |
964 scoped_ptr<content::ColorChooser> color_chooser_; | 950 scoped_ptr<content::ColorChooser> color_chooser_; |
965 | 951 |
966 DISALLOW_COPY_AND_ASSIGN(Browser); | 952 DISALLOW_COPY_AND_ASSIGN(Browser); |
967 }; | 953 }; |
968 | 954 |
969 #endif // CHROME_BROWSER_UI_BROWSER_H_ | 955 #endif // CHROME_BROWSER_UI_BROWSER_H_ |
OLD | NEW |